commit | f5e6253fe6de35fc2fa059974dbd9d61f32e4cd0 | [log] [tgz] |
---|---|---|
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | Thu Apr 28 11:42:20 2016 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Apr 28 12:35:36 2016 -0700 |
tree | f2aea215554ff4c40edde5f7ebe807c2ce60d636 | |
parent | b5a2a8ecb204c821f47b43ab7e93f408b0d085b1 [diff] |
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>