]> err.no Git - linux-2.6/commitdiff
V4L/DVB (5414): Add missing kfree in early exit of saa7115.
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 10 Mar 2007 23:11:23 +0000 (20:11 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 27 Apr 2007 18:44:31 +0000 (15:44 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
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;
        }