aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2017-11-17 16:21:48 +0000
committerBartlomiej Zolnierkiewicz <[email protected]>2017-11-17 16:21:48 +0000
commit5fa1f45de8fd697d9f23050e20dd65c0998e6107 (patch)
tree1228e9336961695239c00e577e6492afad26b353 /scripts/gcc-plugins/randomize_layout_plugin.c
parentfbcon: Initialize ops->info early (diff)
downloadkernel-5fa1f45de8fd697d9f23050e20dd65c0998e6107.tar.gz
kernel-5fa1f45de8fd697d9f23050e20dd65c0998e6107.zip
video: fbdev: sm501fb: fix potential null pointer dereference on fbi
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 <[email protected]> Cc: Sudip Mukherjee <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions