Re: [PATCH] video: hgafb: fix a NULL pointer dereference

2019-04-01 Thread Bartlomiej Zolnierkiewicz
On 03/14/2019 08:30 AM, Kangjie Lu wrote: > When ioremap fails, hga_vram should not be dereferenced. The fix > check the failure to avoid NULL pointer dereference. > > Signed-off-by: Kangjie Lu Patch queued for v5.2 with minor change in the patch summary ("video: hgafb: f

[PATCH] video: hgafb: fix a NULL pointer dereference

2019-03-14 Thread Kangjie Lu
When ioremap fails, hga_vram should not be dereferenced. The fix check the failure to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu --- drivers/video/fbdev/hgafb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/hgafb.c b/drivers/video/fbdev/hgafb.c index