V4L/DVB (7063): xc5000: Fix OOPS caused by missing firmware

xc5000: Fix OOPS caused by missing firmware.

Signed-off-by: Chaogui Zhang <czhang1974@gmail.com>
Acked-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
Steven Toth 2008-01-24 22:29:46 -03:00 коммит произвёл Mauro Carvalho Chehab
Родитель 2fb8840663
Коммит 5ea60531c1
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -558,6 +558,7 @@ static int xc5000_fwupload(struct dvb_frontend* fe)
if (ret) { if (ret) {
printk(KERN_ERR "xc5000: Upload failed. (file not found?)\n"); printk(KERN_ERR "xc5000: Upload failed. (file not found?)\n");
ret = XC_RESULT_RESET_FAILURE; ret = XC_RESULT_RESET_FAILURE;
goto out;
} else { } else {
printk(KERN_INFO "xc5000: firmware read %Zu bytes.\n", printk(KERN_INFO "xc5000: firmware read %Zu bytes.\n",
fw->size); fw->size);
@ -572,6 +573,7 @@ static int xc5000_fwupload(struct dvb_frontend* fe)
ret = xc_load_i2c_sequence(fe, fw->data ); ret = xc_load_i2c_sequence(fe, fw->data );
} }
out:
release_firmware(fw); release_firmware(fw);
return ret; return ret;
} }