linux/drivers/staging/dgap
Javier Martinez Canillas e98631d83c staging: dgap: fix returned errno code in dgap_parsefile()
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:

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

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 04:16:29 +02:00
..
dgap.c staging: dgap: fix returned errno code in dgap_parsefile() 2015-09-29 04:16:29 +02:00
dgap.h Staging: dgap: dgap: Fixed spelling errors 2015-05-31 11:40:14 +09:00
Kconfig staging,dgap: Add dependency on HAS_IOMEM 2014-01-15 14:51:22 -08:00
Makefile staging: dgap: Rename driver 2014-02-24 16:48:44 -08:00