[PATCH] cr_backlight_probe allocates too little storage for struct cr_panel

2007-07-18 Thread Jesper Juhl
Hi, The Coverity checker noticed that we allocate too little storage for "struct cr_panel *crp" in cr_backlight_probe(). We allocate sizeof(crp) where we should really be allocating sizeof(*crp) - or sizeof(struct cr_panel) - I chose the first notation. This patch should fix the problem.

[PATCH] cr_backlight_probe allocates too little storage for struct cr_panel

2007-07-18 Thread Jesper Juhl
Hi, The Coverity checker noticed that we allocate too little storage for struct cr_panel *crp in cr_backlight_probe(). We allocate sizeof(crp) where we should really be allocating sizeof(*crp) - or sizeof(struct cr_panel) - I chose the first notation. This patch should fix the problem.