From: Hans Verkuil Date: Sat, 10 Mar 2007 23:11:23 +0000 (-0300) Subject: V4L/DVB (5414): Add missing kfree in early exit of saa7115. X-Git-Tag: v2.6.22-rc1~1118^2~107 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e5e9aab31d3f73977d2b14189a0bb08b582cbb9;p=linux-2.6 V4L/DVB (5414): Add missing kfree in early exit of saa7115. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/saa7115.c b/drivers/media/video/saa7115.c index 26c9b64c74..2d18f00698 100644 --- a/drivers/media/video/saa7115.c +++ b/drivers/media/video/saa7115.c @@ -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; }