Your commit:

    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 <[email protected]>
    Reviewed-by: Lukas Czerner <[email protected]>
    Signed-off-by: "Theodore Ts'o" <[email protected]>
    Cc: [email protected]

has been added to the upstream SCSI tree
You can find it here:

http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=46e4690bbd9a4f8d9e7c4f34e34b48f703ad47e0

This patch is scheduled to be pushed when the merge window opens for 2.6.39

James Bottomley

P.S. If you find this email unwanted, set up a procmail rule junking on
the header:

X-Git-Tree: SCSI

_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to