]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/fat: strip "cp" prefix from codepage in display
authorDave Reisner <dreisner@archlinux.org>
Thu, 29 Nov 2012 03:18:52 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:43 +0000 (16:23 +1100)
commit9cde22ddaaf18786b8e722b6ff2a4d925204b29b
tree0229be1ff561f50c80554798fa2466286ef7868f
parent568fa633c47781b287b320fb7f2cb589b632f196
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>
fs/fat/inode.c