]> git.hungrycats.org Git - linux/commit
[PATCH] loop: trivial error number fix
authorAndrew Morton <akpm@osdl.org>
Tue, 20 Jan 2004 11:11:15 +0000 (03:11 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 20 Jan 2004 11:11:15 +0000 (03:11 -0800)
commitf76fe2f64a622d02e7755c423db0c3cd4ba62589
treea12f3b3d5bc16522a0401c52ee0eb02107b8614c
parent56f4a65438dd5b2e91ba16f000ba3f1732076dba
[PATCH] loop: trivial error number fix

From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

This patch fixes the error number when invalid file is passed (neother
S_ISBLK nor S_ISREG is true).  We should return -EINVAL.
drivers/block/loop.c