]> git.baikalelectronics.ru Git - kernel.git/commit
drm/arm/malidp: Fix possible dereference of NULL
authorShailendra Verma <shailendra.v@samsung.com>
Fri, 11 Nov 2016 13:35:00 +0000 (13:35 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 23 Jan 2017 09:46:24 +0000 (09:46 +0000)
commit00aa60b753c25e6c82aeb777a58aef896d368b13
treeba120c37956ee714f3663c0be411ae3357b7bcf8
parentb56e0a722acd9f5750e9173eb5a6332018a52a4e
drm/arm/malidp: Fix possible dereference of NULL

There is possible deference of NULL pointer on return of
malidp_duplicate_plane_state() if kmalloc fails. Check the
returned kmalloc pointer before continuing.

Signed-off-by: Shailendra Verma <Shailendra.v@samsung.com>
[cleaned up the code and re-formatted the commit message]
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/gpu/drm/arm/malidp_planes.c