summaryrefslogtreecommitdiff
path: root/include/linux/mod_devicetable.h
diff options
context:
space:
mode:
authorMayank Rana <mrana@codeaurora.org>2013-10-18 14:46:36 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:10:57 -0700
commitf18c9be9d4bd7bca2091219ddbbb0e7243c75260 (patch)
tree27a506d71e78e8723276ee17c87c4823ea815232 /include/linux/mod_devicetable.h
parentc336ae90fae67a284e7907eff63f3a51ebd7fb7d (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> Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Diffstat (limited to 'include/linux/mod_devicetable.h')
0 files changed, 0 insertions, 0 deletions