summaryrefslogtreecommitdiff
path: root/drivers/mailbox
diff options
context:
space:
mode:
authorChunfeng Yun <chunfeng.yun@mediatek.com>2016-04-28 06:42:20 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-28 22:35:36 +0300
commitf5e6253fe6de35fc2fa059974dbd9d61f32e4cd0 (patch)
treef2aea215554ff4c40edde5f7ebe807c2ce60d636 /drivers/mailbox
parentb5a2a8ecb204c821f47b43ab7e93f408b0d085b1 (diff)
downloadlinux-f5e6253fe6de35fc2fa059974dbd9d61f32e4cd0.tar.xz
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 'drivers/mailbox')
0 files changed, 0 insertions, 0 deletions