diff options
Diffstat (limited to 'drivers/media/dvb/dvb-usb/gp8psk.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/gp8psk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/gp8psk.c b/drivers/media/dvb/dvb-usb/gp8psk.c index afb444db43ad..45106ac49674 100644 --- a/drivers/media/dvb/dvb-usb/gp8psk.c +++ b/drivers/media/dvb/dvb-usb/gp8psk.c | |||
@@ -105,6 +105,10 @@ static int gp8psk_load_bcm4500fw(struct dvb_usb_device *d) | |||
105 | 105 | ||
106 | ptr = fw->data; | 106 | ptr = fw->data; |
107 | buf = kmalloc(64, GFP_KERNEL | GFP_DMA); | 107 | buf = kmalloc(64, GFP_KERNEL | GFP_DMA); |
108 | if (!buf) { | ||
109 | ret = -ENOMEM; | ||
110 | goto out_rel_fw; | ||
111 | } | ||
108 | 112 | ||
109 | while (ptr[0] != 0xff) { | 113 | while (ptr[0] != 0xff) { |
110 | u16 buflen = ptr[0] + 4; | 114 | u16 buflen = ptr[0] + 4; |