diff options
| author | Xiubo Li <[email protected]> | 2014-03-10 01:33:58 +0000 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2014-03-17 10:23:08 +0000 |
| commit | 04cfe97eb11c28848d14ba8c88124da31a9f881c (patch) | |
| tree | 520bfac563bb7cdcf12c1a793c26c7d20948e5c1 /drivers/gpu/drm/drm_pci.c | |
| parent | drm: Check if the allocation has succeeded before dereferencing newmode (diff) | |
| download | kernel-04cfe97eb11c28848d14ba8c88124da31a9f881c.tar.gz kernel-04cfe97eb11c28848d14ba8c88124da31a9f881c.zip | |
drm/fb-helper: Do the 'max_conn_count' zero check
Since we cannot make sure the 'max_conn_count' will always be none
zero from the users, and then if max_conn_count equals to zero, the
kcalloc() will return ZERO_SIZE_PTR, which equals to ((void *)16).
So this patch fix this with just doing the 'max_conn_count' zero check
in the front of drm_fb_helper_init().
Signed-off-by: Xiubo Li <[email protected]>
CC: Jani Nikula <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/drm_pci.c')
0 files changed, 0 insertions, 0 deletions
