msm: ais: Fix NULL pointer dereference in msm.c.
Added check to avoid NULL pointer dereference in msm.c Change-Id: I1cdfd695a11d826d3650261061c281e391df7139 CRs-Fixed: 2034953 Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
This commit is contained in:
parent
b1d4d653cc
commit
23ab6f01d2
1 changed files with 3 additions and 0 deletions
|
@ -725,6 +725,9 @@ static long msm_private_ioctl(struct file *file, void *fh,
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (!event_data)
|
||||
return -EINVAL;
|
||||
|
||||
memset(&event, 0, sizeof(struct v4l2_event));
|
||||
session_id = event_data->session_id;
|
||||
stream_id = event_data->stream_id;
|
||||
|
|
Loading…
Add table
Reference in a new issue