commit | e369f452161e83607cba25603b9ae62758db2eb8 | [log] [tgz] |
---|---|---|
author | Mayank Rana <mrana@codeaurora.org> | Fri Oct 18 14:46:36 2013 +0530 |
committer | Saket Saurabh <ssaurabh@codeaurora.org> | Fri Dec 20 11:56:57 2013 +0530 |
tree | e5a31f26c0f308ba24ec83b9b4590455a4539dd5 | |
parent | 461f11600e7e20f34953c1f2d6177c9e5d44a9f1 [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: Saket Saurabh <ssaurabh@codeaurora.org>