]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/saa7115.c
UBI: fix sparse warnings
[linux-2.6-omap-h63xx.git] / drivers / media / video / saa7115.c
index 26c9b64c748c0bc9b0278ea4dd3cd3f5a9d47bbb..2d18f00698214565603d486847dacd4e2345b4b6 100644 (file)
@@ -1486,6 +1486,7 @@ static int saa711x_attach(struct i2c_adapter *adapter, int address, int kind)
        if (memcmp(name, "1f711", 5)) {
                v4l_dbg(1, debug, client, "chip found @ 0x%x (ID %s) does not match a known saa711x chip.\n",
                        address << 1, name);
+               kfree(client);
                return 0;
        }