]> git.baikalelectronics.ru Git - kernel.git/commit
fs/fat: strip "cp" prefix from codepage in display
authorDave Reisner <dreisner@archlinux.org>
Tue, 18 Dec 2012 00:03:01 +0000 (16:03 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:22 +0000 (17:15 -0800)
commit0cb2003113f4f074f0cf2f6a8190b15322fb22ec
tree62ce9835296c45696abb9ab50a9e12c0b84cfbbd
parent776e19b9aaa4abe6953cc541e5ca82dd38da4cba
fs/fat: strip "cp" prefix from codepage in display

Option parsing code expects an unsigned integer for the codepage option,
but prefixes and stores this option with "cp" before passing to
load_nls().  This makes the displayed option in /proc an invalid one.
Strip the prefix when printing so that the displayed option is valid for
reuse.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/inode.c