]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
commit9eb85125ce218a8b8d9a7c982510388e227adbec
tree320b87113d2c6b151f14e39d3a7e60174e19b0be
parent47788c58e66c050982241d9a05eb690daceb05a9
blktrace: pass the right pointer to kfree()

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>
kernel/trace/blktrace.c