Re: [PATCH] video: fbdev: sis: fix null ptr dereference

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 8/5/20 4:52 PM, t...@redhat.com wrote: > From: Tom Rix > > Clang static analysis reports this representative error > > init.c:2501:18: warning: Array access (from variable 'queuedata') results > in a null pointer dereference > templ |= ((queuedata[i] & 0xc0) << 3); > > This is the

[PATCH] video: fbdev: sis: fix null ptr dereference

2020-08-05 Thread trix
From: Tom Rix Clang static analysis reports this representative error init.c:2501:18: warning: Array access (from variable 'queuedata') results in a null pointer dereference templ |= ((queuedata[i] & 0xc0) << 3); This is the problem block of code if(ModeNo > 0x13) { ...