aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMayank Rana <mrana@codeaurora.org>2013-10-18 14:46:36 +0530
committerMoyster <oysterized@gmail.com>2018-05-16 13:59:23 +0200
commit750030b3f14b07395e7674e2cfe104874bbbf88f (patch)
treeecf22fbbfaa2e8bc8e25ea864e0d2cf89538e9a0 /drivers
parentd6a5b2bb21682c4b2c634af20ba3d1210ac834de (diff)
msm: usbaudio: Add check for NULL before dereferencing
kzalloc() and usb_ifnum_to_if() both APIs can return NULL. Current code is not checking return value and derefencing which may crash device if it is set to NULL. Fix this by checking return value against NULL and handling the same. CRs-Fixed: 562273 Change-Id: I0d2c910f43321e94fc447b19ae3e3207727e24f3 Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions