OMAPDSS: move 'compatible' converter to omapdss driver
Hello Tomi Valkeinen,
The patch f2dd36ac9974: "OMAPDSS: move 'compatible' converter to omapdss driver" from May 15, 2014, leads to the following static checker warning:
drivers/video/fbdev/omap2/dss/omapdss-boot-init.c:124 omapdss_add_to_list()
error: potential null dereference 'n'. (kmalloc returns null)
drivers/video/fbdev/omap2/dss/omapdss-boot-init.c
120 static void __init omapdss_add_to_list(struct device_node *node, bool root) 121 {
122 struct dss_conv_node *n = kmalloc(sizeof(struct dss_conv_node),
123 GFP_KERNEL);
124 n->node = node; 125 n->root = root; 126 list_add(&n->list, &dss_conv_list);
127 }
128
regards,
dan carpenter