]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] videobuf2: avoid memory leak on errors
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 18 Dec 2015 16:11:31 +0000 (14:11 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 18 Dec 2015 16:13:38 +0000 (14:13 -0200)
commitb62ef37c6e2f30d1b5ce3889212050d738c04885
tree2d22e74cad8528b3962f8133273cfb14a7b404da
parent58e1ba3ce6b2c8f4933525d8bb939605add22c83
[media] videobuf2: avoid memory leak on errors

As reported by smatch:
drivers/media/v4l2-core/videobuf2-core.c:2415 __vb2_init_fileio() warn: possible memory leak of 'fileio'

While here, avoid the usage of sizeof(struct foo_struct).

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-core.c