we are referencing the pointer after doing alloc_apertures, as alloc_apertures kzallocs, the kzalloc may fail and we get a NULL. so we need to check for NULL before we dereference this pointer Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| mgag200_drv.c | ||
| mgag200_drv.h | ||
| mgag200_fb.c | ||
| mgag200_i2c.c | ||
| mgag200_main.c | ||
| mgag200_mode.c | ||
| mgag200_reg.h | ||
| mgag200_ttm.c | ||