projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca39d84
)
V4L/DVB: dvb: return -ENOMEM if kzalloc failed in dvb_usb_device_init()
author
Roel Kluin
<roel.kluin@gmail.com>
Tue, 2 Feb 2010 14:29:46 +0000
(11:29 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:51 +0000
(15:10 -0300)
If in a cold state and the download succeeded ret is zero, but we
should return -ENOMEM.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dvb-usb-init.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/dvb-usb/dvb-usb-init.c
b/drivers/media/dvb/dvb-usb/dvb-usb-init.c
index
e331db8
..
5d91f70
100644
(file)
--- a/
drivers/media/dvb/dvb-usb/dvb-usb-init.c
+++ b/
drivers/media/dvb/dvb-usb/dvb-usb-init.c
@@
-243,7
+243,7
@@
int dvb_usb_device_init(struct usb_interface *intf,
d = kzalloc(sizeof(struct dvb_usb_device),GFP_KERNEL);
if (d == NULL) {
err("no memory for 'struct dvb_usb_device'");
- return
ret
;
+ return
-ENOMEM
;
}
d->udev = udev;