Block drivers: reply ENOTTY to unknown IOCTLs

Change-Id: Ie2e82d2491d546f4dd73b009100646e249a147b5
This commit is contained in:
David van Moolenbroek
2013-09-01 14:34:17 +02:00
committed by Lionel Sambuc
parent a1f00d5527
commit 26cb85535e
8 changed files with 9 additions and 9 deletions

View File

@@ -345,7 +345,7 @@ static int do_ioctl(struct blockdriver *bdp, message *mp)
if (bdp->bdr_ioctl)
r = (*bdp->bdr_ioctl)(minor, request, mp->m_source, grant);
else
r = EINVAL;
r = ENOTTY;
}
return r;