blktrace: pass the right pointer to kfree()
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 9 Apr 2009 03:19:40 +0000 (11:19 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 9 Apr 2009 03:52:40 +0000 (05:52 +0200)
Impact: fix kfree crash with non-standard act_mask string

If passing a string with leading white spaces to strstrip(),
the returned ptr != the original ptr.

This bug was introduced by me.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <49DD694C.8020902@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found