drm_fb_helper.c:1247:1-8: alloc with no test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Daniel,

FYI, here is a potential problem on memory allocation failure, caught by coccinelle:

+ drivers/gpu/drm/drm_fb_helper.c:1247:1-8: alloc with no test, possible model on line 1252

vim +1247 drivers/gpu/drm/drm_fb_helper.c
  1244				sizeof(struct drm_fb_helper_crtc *), GFP_KERNEL);
  1245		modes = kcalloc(dev->mode_config.num_connector,
  1246				sizeof(struct drm_display_mode *), GFP_KERNEL);
> 1247		enabled = kcalloc(dev->mode_config.num_connector,
  1248				  sizeof(bool), GFP_KERNEL);
  1249	
  1250		drm_enable_connectors(fb_helper, enabled);

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu <wfg@xxxxxxxxxxxxxxx>                     Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux