[media] s5p-fimc: Fix possible memory leak during capture devnode registration
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 2 Jun 2011 09:18:34 +0000 (06:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 11 Jun 2011 12:45:20 +0000 (09:45 -0300)
commitcfd77310a93aac6de7077335b2b73c19531043e4
treedb5d776cee89cddbe4be4a400d16812c0ed2af57
parent94215ccd99eb6e3c8a035c06984630bd7479d963
[media] s5p-fimc: Fix possible memory leak during capture devnode registration

Add missing kfree on the error path.

Reported-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-capture.c