linux/drivers/media/usb/go7007
Javier Martinez Canillas 5bcc0dd790 [media] go7007: Fix returned errno code in gen_mjpeghdr_to_package()
The driver is using -1 instead of the -ENOMEM defined macro to specify
that a buffer allocation failed. Since the error number is propagated,
the caller will get a -EPERM which is the wrong error condition.

Also, the smatch tool complains with the following warning:

gen_mjpeghdr_to_package() warn: returning -1 instead of -ENOMEM is sloppy

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-10-01 08:32:52 -03:00
..
go7007-driver.c [media] go7007: don't use vb before test if it is not NULL 2015-04-30 13:41:03 -03:00
go7007-fw.c [media] go7007: Fix returned errno code in gen_mjpeghdr_to_package() 2015-10-01 08:32:52 -03:00
go7007-i2c.c
go7007-loader.c
go7007-priv.h
go7007-usb.c [media] go7007: Comment some dead code 2015-05-01 06:09:52 -03:00
go7007-v4l2.c [media] v4l2: replace s_mbus_fmt by set_fmt in bridge drivers 2015-05-01 09:01:16 -03:00
Kconfig
Makefile
s2250-board.c [media] Drop owner assignment from i2c_driver 2015-08-11 13:01:57 -03:00
snd-go7007.c