Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[linux-2.6-block.git] / drivers / media / dvb-frontends / cx24117.c
index 42697a5999f7dd20022d5868b34a515f74fd1db5..9fccc906d85a4e71f27a6528edfe0536ca693827 100644 (file)
@@ -619,8 +619,10 @@ static int cx24117_load_firmware(struct dvb_frontend *fe,
 
        /* send fw */
        ret = i2c_transfer(state->priv->i2c, &msg, 1);
-       if (ret < 0)
+       if (ret < 0) {
+               kfree(buf);
                return ret;
+       }
 
        kfree(buf);