Revert "mtd: switch open_mtd_by_chdev() to use of vfs_stat()"
authorRichard Weinberger <richard@nod.at>
Sun, 12 Jun 2016 22:49:03 +0000 (00:49 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 14 Jun 2016 08:51:42 +0000 (10:51 +0200)
commit1a498ec45eeabcb246c3c3f5822ed9ac1b4f70d8
treea5896d3a06815735df07a090adeecef2646e24ec
parentad022c87187b50f50937bd9bcd1ef312442a89af
Revert "mtd: switch open_mtd_by_chdev() to use of vfs_stat()"

This reverts commit 87f15d4add758fb7fc76655721af94be57a4c17d.

vfs_stat() can only be used on user supplied buffers.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/build.c