]> git.karo-electronics.de Git - linux-beck.git/commit
[media] solo6x10: fix potential null dereference
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 25 Jul 2014 11:19:54 +0000 (08:19 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 27 Jul 2014 21:24:16 +0000 (18:24 -0300)
commit0a12830893e8b111189e9019848ead054b0f85b3
tree609394e596e58ec4aa402a795acd7a0987a087a7
parent9c9cb1fad865b3d9e9c4d7bbfbd20ca04cdc79b3
[media] solo6x10: fix potential null dereference

drivers/media/pci/solo6x10/solo6x10-disp.c:221 solo_set_motion_block() error: potential null dereference
'buf'.  (kzalloc returns null)

Also propagate this error up the chain.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/solo6x10/solo6x10-disp.c
drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c