Tao Ma
46e4690bbd
ext4: fix a double free in ext4_register_li_request
...
In ext4_register_li_request, we malloc a ext4_li_request and
inserts it into ext4_li_info->li_request_list. In case of any
error later, we free it in the end. But if we have some error
in ext4_run_lazyinit_thread, the whole li_request_list will be
dropped and freed in it. So we will double free this ext4_li_request.
This patch just sets elr to NULL after it is inserted to the list
so that the latter kfree won't double free it.
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
2011-04-04 16:00:49 -04:00
..
2011-03-23 19:47:13 -07:00
2011-03-24 10:16:26 -07:00
2011-03-24 10:16:26 -07:00
2011-02-25 11:12:37 -08:00
2011-03-24 14:54:35 -04:00
2011-03-10 08:52:07 +01:00
2011-03-24 10:16:26 -07:00
2011-03-28 15:31:05 -07:00
2011-01-24 10:49:45 +11:00
2011-03-29 07:50:34 -07:00
2011-03-10 08:52:07 +01:00
2011-03-25 17:45:16 -07:00
2011-01-16 21:22:29 +00:00
2011-01-13 08:03:23 -08:00
2011-02-18 08:07:18 -08:00
2011-03-22 17:44:17 -07:00
2011-03-10 13:22:34 -06:00
2011-03-28 01:49:43 -05:00
2011-03-10 08:52:07 +01:00
2011-03-24 10:16:26 -07:00
2011-03-15 02:21:44 -04:00
2011-03-24 10:16:26 -07:00
2011-03-24 10:16:26 -07:00
2011-04-04 16:00:49 -04:00
2011-03-24 10:16:26 -07:00
2011-03-10 08:52:07 +01:00
2011-01-14 09:23:36 -08:00
2011-03-24 10:16:26 -07:00
2011-03-24 10:16:26 -07:00
2011-03-24 10:16:26 -07:00
2011-03-24 10:16:26 -07:00
2011-01-12 20:03:42 -05:00
2011-03-24 10:16:26 -07:00
2011-01-07 17:50:26 +11:00
2011-03-22 17:44:02 -07:00
2011-03-24 10:16:26 -07:00
2011-03-24 10:16:26 -07:00
2011-04-04 12:58:12 -04:00
2011-03-25 17:41:20 +02:00
2011-03-24 10:16:26 -07:00
2011-01-25 15:24:47 -05:00
2011-03-24 19:01:30 -07:00
2011-03-24 10:16:26 -07:00
2011-03-17 14:02:57 +01:00
2011-03-29 07:50:34 -07:00
2011-03-22 20:03:52 -04:00
2011-03-24 08:20:39 -07:00
2011-03-24 10:16:26 -07:00
2011-03-24 21:17:51 -04:00
2011-03-24 19:01:30 -07:00
2011-03-28 13:03:31 -07:00
2011-03-24 10:16:26 -07:00
2011-01-07 17:50:26 +11:00
2011-03-24 10:16:26 -07:00
2011-03-27 19:09:29 -07:00
2011-03-22 16:01:49 -07:00
2011-03-10 08:52:07 +01:00
2011-03-24 21:16:32 -04:00
2011-03-24 10:16:26 -07:00
2011-01-07 17:50:26 +11:00
2011-03-22 23:01:26 +00:00
2011-01-20 17:02:05 -08:00
2011-03-24 10:16:26 -07:00
2011-03-24 10:16:26 -07:00
2011-03-24 10:16:26 -07:00
2011-03-24 10:16:26 -07:00
2011-03-28 15:51:02 -07:00
2011-03-24 10:16:26 -07:00
2011-01-16 13:47:07 -05:00
2011-03-23 19:47:13 -07:00
2011-01-07 17:50:29 +11:00
2011-03-23 20:51:42 -07:00
2011-03-17 11:11:05 +01:00
2011-03-24 10:16:26 -07:00
2011-03-24 19:01:30 -07:00
2011-03-24 19:01:30 -07:00
2011-01-13 10:45:01 -08:00
2011-01-07 14:39:20 -08:00
2011-03-21 00:16:08 -04:00
2011-03-18 10:51:11 -07:00
2011-03-24 10:16:26 -07:00
2011-03-24 21:16:32 -04:00
2011-02-21 15:07:04 -08:00
2011-03-22 17:44:15 -07:00
2011-03-21 00:16:09 -04:00
2011-03-23 19:47:13 -07:00
2011-03-15 02:21:44 -04:00
2011-03-21 00:16:09 -04:00
2011-03-16 13:26:17 -07:00
2011-01-07 17:50:27 +11:00
2011-01-16 13:47:07 -05:00
2011-03-24 21:17:51 -04:00
2011-03-23 19:47:13 -07:00
2011-03-27 19:30:19 -07:00
2011-03-24 21:17:51 -04:00
2011-03-21 00:16:08 -04:00
2010-11-15 10:23:31 +01:00
2011-03-16 19:01:29 -07:00
2011-01-12 20:03:43 -05:00
2011-03-24 08:20:39 -07:00
2011-03-16 19:01:29 -07:00
2011-01-10 19:04:08 +01:00
2011-03-10 08:52:26 +01:00
2011-03-24 14:24:32 -04:00
2011-03-22 17:44:10 -07:00
2011-03-14 09:15:28 -04:00
2011-03-21 01:10:41 -04:00
2011-01-20 16:21:59 -08:00
2011-01-07 17:50:33 +11:00
2011-01-25 15:24:47 -05:00
2011-01-12 20:06:58 -05:00
2011-03-21 00:16:08 -04:00
2011-01-13 10:45:01 -08:00
2011-03-15 02:21:45 -04:00
2011-03-14 09:15:28 -04:00
2011-03-24 10:16:26 -07:00
2011-03-24 10:16:26 -07:00
2011-03-23 19:47:13 -07:00
2011-03-23 19:47:13 -07:00