UBI: add more checks to chdev open
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 5 Jan 2010 15:25:59 +0000 (17:25 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 12 Jan 2010 11:19:15 +0000 (13:19 +0200)
commitb531b55a7bde8aa2bdf7023b3afc6df1bf3dcb67
treed6045d623d645f6481ae5b1cab5e8288d293f345
parentff998793288b49a3b22d929bf8e56362320905ff
UBI: add more checks to chdev open

When opening UBI volumes by their character device names, make
sure we are opening character devices, not block devices or any
other inode type.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/kapi.c