Xiubo Li
a823e76138
led: gpio: Fix possible ZERO_SIZE_PTR pointer dereferencing error.
...
Since we cannot make sure the 'pdata->num_leds' will always be none
zero here, and then if it equals to zero, the kmemdup() will return
ZERO_SIZE_PTR, which equals to ((void *)16).
So this patch fix this with just doing the zero check before calling
kmemdup().
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
2014-09-29 10:21:01 -07:00
..
2014-09-11 16:57:51 -07:00
2014-05-08 14:28:07 +08:00
2014-09-24 15:36:30 +01:00
2014-09-12 14:01:54 -07:00
2014-09-12 14:01:54 -07:00
2014-04-07 14:47:25 -07:00
2014-05-08 14:28:08 +08:00
2014-05-08 14:28:08 +08:00
2014-02-27 09:56:56 -08:00
2014-05-08 14:28:08 +08:00
2014-02-27 10:19:57 -08:00
2014-03-13 15:53:31 -07:00
2014-02-27 09:56:56 -08:00
2012-12-15 12:52:42 -08:00
2014-05-08 14:28:08 +08:00
2014-05-08 14:28:08 +08:00
2013-10-22 10:57:34 -07:00
2014-02-27 09:56:56 -08:00
2014-09-29 10:21:01 -07:00
2014-09-29 10:18:28 -07:00
2014-02-27 09:56:56 -08:00
2014-07-29 10:57:20 -07:00
2014-06-25 15:10:54 -07:00
2014-06-25 15:00:55 -07:00
2014-06-25 15:02:31 -07:00
2014-06-25 15:13:08 -07:00
2011-10-31 19:31:49 -04:00
2014-06-27 13:44:05 -07:00
2013-08-26 17:22:12 -07:00
2014-09-11 16:55:27 -07:00
2014-02-27 09:56:56 -08:00
2014-05-08 14:28:08 +08:00
2014-02-27 10:17:15 -08:00
2014-01-10 11:44:44 +01:00
2013-02-01 17:47:05 -08:00
2014-02-27 09:56:56 -08:00
2014-06-25 15:24:03 -07:00
2014-02-27 09:56:56 -08:00
2014-09-24 15:36:30 +01:00
2012-11-27 14:49:28 -08:00
2014-06-25 15:27:37 -07:00
2014-06-25 15:32:11 -07:00
2014-02-27 09:56:56 -08:00
2013-08-26 17:22:11 -07:00
2014-07-03 11:55:56 -07:00
2013-08-26 17:22:11 -07:00
2014-06-12 13:08:09 -07:00
2012-12-15 12:52:42 -08:00
2013-08-26 17:22:11 -07:00
2014-05-08 14:28:08 +08:00
2014-06-25 15:34:24 -07:00
2014-05-08 14:28:08 +08:00
2014-01-27 17:28:49 -08:00
2014-03-28 10:54:15 +01:00
2014-06-25 15:35:11 -07:00
2014-02-27 09:56:56 -08:00
2012-11-27 14:49:30 -08:00
2012-09-11 18:32:40 +08:00
2014-09-24 15:36:30 +01:00