From: Xiubo Li Date: Mon, 10 Mar 2014 01:33:58 +0000 (+0800) Subject: drm/fb-helper: Do the 'max_conn_count' zero check X-Git-Tag: v3.15-rc1~51^2~50^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04cfe97eb11c28848d14ba8c88124da31a9f881c;p=pandora-kernel.git 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 CC: Jani Nikula Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed