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-02-25 11:12:37 -08:00
2011-03-10 08:52:07 +01:00
2011-03-10 08:52:07 +01:00
2011-03-10 13:22:34 -06:00
2011-03-10 08:52:07 +01:00
2011-03-10 08:52:07 +01:00
2011-01-14 09:23:36 -08:00
2011-01-12 20:03:42 -05:00
2011-01-07 17:50:26 +11:00
2011-03-17 14:02:57 +01:00
2011-01-07 17:50:26 +11:00
2011-03-22 16:01:49 -07:00
2011-03-10 08:52:07 +01:00
2011-01-07 17:50:26 +11:00
2011-03-21 00:16:09 -04:00
2011-03-15 02:21:44 -04:00
2011-01-07 17:50:27 +11:00
2011-03-27 19:30:19 -07:00
2011-03-21 00:16:08 -04:00
2011-03-10 08:52:26 +01:00
2011-03-21 01:10:41 -04:00
2011-01-07 17:50:33 +11:00
2011-03-14 09:15:28 -04:00