mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 22:05:24 -04:00
Staging: atomisp: fix an uninitialized variable bug
There are some error paths in atomisp_css_frame_allocate() which don't
initialize "res" so it could lead us to try release random memory.
Fixes: a49d25364d ("staging/atomisp: Add support for the Intel IPU v2")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
af4fd0e7a4
commit
b5563094d7
@@ -4722,7 +4722,7 @@ static int
|
||||
atomisp_v4l2_framebuffer_to_css_frame(const struct v4l2_framebuffer *arg,
|
||||
struct atomisp_css_frame **result)
|
||||
{
|
||||
struct atomisp_css_frame *res;
|
||||
struct atomisp_css_frame *res = NULL;
|
||||
unsigned int padded_width;
|
||||
enum atomisp_css_frame_format sh_format;
|
||||
char *tmp_buf = NULL;
|
||||
|
||||
Reference in New Issue
Block a user