diff options
| author | Jingtao Chen <jingtaoc@codeaurora.org> | 2017-06-14 15:11:37 +0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-06-15 02:35:12 -0700 |
| commit | bb4ea9d9e7860511282cdc84a8d33b4f526766ac (patch) | |
| tree | 042935c89eadf646b5de1856646f63ee3f489143 /include/media | |
| parent | d87f10c472e64cfc1bb705cd260c51597db57ffe (diff) | |
msm: ba: Fix some potential risks
Avoid memory leaks and prevent to dereference null pointer
Change-Id: I907ea987b0f3d6971116e116841482fa364ef7b8
Signed-off-by: Jingtao Chen <jingtaoc@codeaurora.org>
Diffstat (limited to 'include/media')
| -rw-r--r-- | include/media/msm_ba.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/media/msm_ba.h b/include/media/msm_ba.h index 1b51e3f754d8..d630e441590f 100644 --- a/include/media/msm_ba.h +++ b/include/media/msm_ba.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -68,6 +68,7 @@ int msm_ba_s_ext_ctrl(void *instance, struct v4l2_ext_controls *a); int msm_ba_g_ctrl(void *instance, struct v4l2_control *a); int msm_ba_streamon(void *instance, enum v4l2_buf_type i); int msm_ba_streamoff(void *instance, enum v4l2_buf_type i); +long msm_ba_private_ioctl(void *instance, int cmd, void *arg); int msm_ba_save_restore_input(void *instance, enum msm_ba_save_restore_ip sr); int msm_ba_poll(void *instance, struct file *filp, struct poll_table_struct *pt); |
