]> Git Repo - linux.git/commit - block/blktrace.c
Fix misuses of bdevname()
authorJean Delvare <[email protected]>
Mon, 12 May 2008 21:02:33 +0000 (14:02 -0700)
committerLinus Torvalds <[email protected]>
Tue, 13 May 2008 15:02:26 +0000 (08:02 -0700)
commitf36f21ecca9ee688301174e5f2e0827827a7a7ff
treeb147bb5cc37683dfe01c86fba634808aa2ff567d
parent78bb6cb9a890d3d50ca3b02fce9223d3e734ab9b
Fix misuses of bdevname()

bdevname() fills the buffer that it is given as a parameter, so calling
strcpy() or snprintf() on the returned value is redundant (and probably not
guaranteed to work - I don't think strcpy and snprintf support overlapping
buffers.)

Signed-off-by: Jean Delvare <[email protected]>
Cc: Stephen Tweedie <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
block/blktrace.c
block/compat_ioctl.c
fs/ext4/mballoc.c
fs/jbd2/journal.c
This page took 0.049775 seconds and 4 git commands to generate.