]> git.baikalelectronics.ru Git - kernel.git/commit
video:uvesafb: Fix dereference NULL pointer code path
authorWang YanQing <udknight@gmail.com>
Sat, 30 Mar 2013 02:53:00 +0000 (04:53 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 2 Apr 2013 10:33:55 +0000 (13:33 +0300)
commita133f2b43545ee21820c8e4cae0f14a7bb75f66b
tree5b81a185bc34326ef9e120ca96fe271c3e589bba
parent34c5d8f847e579d72a61212d96143cf821f63421
video:uvesafb: Fix dereference NULL pointer code path

platform_device_alloc could failed and return NULL,
we should check this before call platform_device_put.

Signed-off-by: Wang YanQing <udknight@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/uvesafb.c