Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5ea60531c1c6164788ea7d6efecdf575adc543ff
Commit:     5ea60531c1c6164788ea7d6efecdf575adc543ff
Parent:     2fb8840663cf0e476549104a2c09caa0fb3b4bc9
Author:     Steven Toth <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 24 22:29:46 2008 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:05:14 2008 -0200

    V4L/DVB (7063): xc5000: Fix OOPS caused by missing firmware
    
    xc5000: Fix OOPS caused by missing firmware.
    
    Signed-off-by: Chaogui Zhang <[EMAIL PROTECTED]>
    Acked-by: Steven Toth <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/dvb/frontends/xc5000.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/media/dvb/frontends/xc5000.c 
b/drivers/media/dvb/frontends/xc5000.c
index a13027e..f642ca2 100644
--- a/drivers/media/dvb/frontends/xc5000.c
+++ b/drivers/media/dvb/frontends/xc5000.c
@@ -558,6 +558,7 @@ static int xc5000_fwupload(struct dvb_frontend* fe)
        if (ret) {
                printk(KERN_ERR "xc5000: Upload failed. (file not found?)\n");
                ret = XC_RESULT_RESET_FAILURE;
+               goto out;
        } else {
                printk(KERN_INFO "xc5000: firmware read %Zu bytes.\n",
                       fw->size);
@@ -572,6 +573,7 @@ static int xc5000_fwupload(struct dvb_frontend* fe)
                ret = xc_load_i2c_sequence(fe,  fw->data );
        }
 
+out:
        release_firmware(fw);
        return ret;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to