bcache: Strip endline when writing the label through sysfs
authorGabriel de Perthuis <g2p.code@gmail.com>
Tue, 24 Sep 2013 06:17:28 +0000 (23:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 Sep 2013 21:41:43 +0000 (14:41 -0700)
commitaee6f1cfff3ce240eb4b43b41ca466b907acbd2e
tree478ae1e04f0f941755b68c472fa7ebfada4dd4a4
parent6d9d21e35fbfa2934339e96934f862d118abac23
bcache: Strip endline when writing the label through sysfs

sysfs attributes with unusual characters have crappy failure modes
in Squeeze (udev 164); later versions of udev are unaffected.

This should make these characters more unusual.

Signed-off-by: Gabriel de Perthuis <g2p.code@gmail.com>
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/bcache/sysfs.c