Dan Carpenter
f1cba532e8
Input: adxl34x - fix leak and use after free
...
These are a couple smatch issues. In the original code, if only one of
the allocation fails we leak the other variable so we should goto
out_free_mem.
Also there was a use after free if debugging was enabled and so I moved
the kfree() down a line.
Signed-off-by: Dan Carpenter <error27@gmail.com >
Signed-off-by: Dmitry Torokhov <dtor@mail.ru >
2010-07-22 23:39:16 -07:00
..
2010-05-19 10:14:10 -07:00
2010-06-03 11:33:58 +02:00
2010-04-13 23:27:16 -07:00
2010-04-13 23:27:22 -07:00
2010-04-13 23:27:16 -07:00
2010-07-03 13:13:21 -07:00
2010-07-03 13:13:21 -07:00
2010-07-22 23:39:16 -07:00
2010-07-03 13:13:21 -07:00
2010-05-20 13:21:38 -07:00
2010-05-20 13:21:38 -07:00
2010-07-13 09:43:24 -07:00
2010-03-30 22:02:32 +09:00
2010-05-20 13:21:38 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-06-08 22:23:21 +02:00
2010-07-14 01:23:11 -07:00
2010-05-20 13:21:38 -07:00
2010-07-14 01:23:11 -07:00
2010-05-22 00:57:59 -07:00
2010-03-30 22:02:32 +09:00
2010-06-03 11:33:58 +02:00
2010-03-30 22:02:32 +09:00
2010-05-20 13:21:38 -07:00
2010-07-14 01:23:11 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-05-22 00:10:40 -06:00
2010-07-08 21:02:55 -07:00
2010-05-22 00:58:06 -07:00
2010-05-20 23:05:28 -07:00
2010-03-30 22:02:32 +09:00
2010-06-28 01:12:22 -07:00
2010-03-30 22:02:32 +09:00
2010-05-20 13:21:38 -07:00