diff options
author | 2016-04-28 11:42:20 +0800 | |
---|---|---|
committer | 2016-04-28 12:35:36 -0700 | |
commit | f5e6253fe6de35fc2fa059974dbd9d61f32e4cd0 (patch) | |
tree | f2aea215554ff4c40edde5f7ebe807c2ce60d636 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | usbip: vudc: fix Kconfig dependencies (diff) | |
download | linux-dev-f5e6253fe6de35fc2fa059974dbd9d61f32e4cd0.tar.xz linux-dev-f5e6253fe6de35fc2fa059974dbd9d61f32e4cd0.zip |
usb: core: buffer: avoid NULL pointer dereferrence
NULL pointer dereferrence will happen when class driver
wants to allocate zero length buffer and pool_max[0]
can't be used, so simply returns NULL in the case.
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions