Look out! vn_start_write() is able to return 0 and NULL 'mp'.
Submitted by: Alex Lyashkov <shadow@psoft.net>
This commit is contained in:
parent
22391e1540
commit
0c0c597faa
@ -197,6 +197,8 @@ quotactl(td, uap)
|
||||
vrele(nd.ni_vp);
|
||||
if (error)
|
||||
return (error);
|
||||
if (mp == NULL)
|
||||
return (EOPNOTSUPP);
|
||||
error = VFS_QUOTACTL(mp, uap->cmd, uap->uid, uap->arg, td);
|
||||
vn_finished_write(mp);
|
||||
return (error);
|
||||
|
@ -197,6 +197,8 @@ quotactl(td, uap)
|
||||
vrele(nd.ni_vp);
|
||||
if (error)
|
||||
return (error);
|
||||
if (mp == NULL)
|
||||
return (EOPNOTSUPP);
|
||||
error = VFS_QUOTACTL(mp, uap->cmd, uap->uid, uap->arg, td);
|
||||
vn_finished_write(mp);
|
||||
return (error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user