The patch titled media: video/tuner-core, fix memory leak has been added to the -mm tree. Its filename is media-video-tuner-core-fix-memory-leak.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: media: video/tuner-core, fix memory leak From: Jiri Slaby <jslaby@xxxxxxx> Stanse found a memory leak in tuner_probe. t is not freed/assigned on all paths. Fix that. Signed-off-by: Jiri Slaby <jslaby@xxxxxxx> Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxx> Cc: Hans Verkuil <hverkuil@xxxxxxxxx> Cc: Michael Krufky <mkrufky@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/media/video/tuner-core.c | 1 + 1 file changed, 1 insertion(+) diff -puN drivers/media/video/tuner-core.c~media-video-tuner-core-fix-memory-leak drivers/media/video/tuner-core.c --- a/drivers/media/video/tuner-core.c~media-video-tuner-core-fix-memory-leak +++ a/drivers/media/video/tuner-core.c @@ -1078,6 +1078,7 @@ static int tuner_probe(struct i2c_client goto register_client; } + kfree(t); return -ENODEV; case 0x42: case 0x43: _ Patches currently in -mm which might be from jslaby@xxxxxxx are linux-next.patch media-dvb-siano-fix-memory-leak.patch media-video-tuner-core-fix-memory-leak.patch infiniband-use-rlimit-helpers.patch mm-use-rlimit-helpers.patch fs-use-rlimit-helpers.patch ipc-use-rlimit-helpers.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html