hostfs: Freeing an ERR_PTR in hostfs_fill_sb_common()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Jul 2016 10:12:34 +0000 (13:12 +0300)
committerRichard Weinberger <richard@nod.at>
Wed, 3 Aug 2016 22:18:10 +0000 (00:18 +0200)
commit8a545f185145e3c09348cd74326268ecfc6715a3
tree9503521d66e563254a7be85ec5d2d915904511f5
parent915eed20e40f4dcb142cb29a3de6f6ba67f4bb5a
hostfs: Freeing an ERR_PTR in hostfs_fill_sb_common()

We can't pass error pointers to kfree() or it causes an oops.

Fixes: 52b209f7b848 ('get rid of hostfs_read_inode()')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/hostfs/hostfs_kern.c