[lkml]   [2017]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] video: fbdev: sm501fb: fix potential null pointer dereference on fbi
On Friday, November 10, 2017 05:32:31 PM Colin King wrote:
> From: Colin Ian King <>
> The pointer fbi is dereferenced with par = fbi->par before there is a
> null check on fbi, hence there is a potential null pointer dereference
> on a null par. Fix this by moving the dereference after the null
> pointer check.
> Detected by CoverityScan, CID#1461301 ("Dereference before null check")
> Signed-off-by: Colin Ian King <>

Patch queued for 4.15, thanks.

Best regards,
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

 \ /
  Last update: 2017-11-17 17:21    [W:0.033 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site