From: Jean Delvare Date: Mon, 12 May 2008 21:02:33 +0000 (-0700) Subject: Fix misuses of bdevname() X-Git-Tag: v2.6.26-rc3~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f36f21ecca9ee688301174e5f2e0827827a7a7ff;p=pandora-kernel.git 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 Cc: Stephen Tweedie Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed