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-01-09 23:28:33 -08: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
2008-08-07 09:55:48 +01:00
2010-07-14 01:23:11 -07:00
2010-05-20 13:21:38 -07:00
2007-10-19 11:53:42 -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-03-02 10:28:38 +01:00
2010-05-20 13:21:38 -07:00
2010-07-14 01:23:11 -07:00
2009-03-09 20:10:12 -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
2010-02-09 11:13:56 +01:00