mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
filemon_ioctl: Handle error from devfs_get_cdevpriv(9).
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
13f727c862
commit
e8c87a09dc
1 changed files with 2 additions and 1 deletions
|
|
@ -143,7 +143,8 @@ filemon_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag __unused,
|
|||
cap_rights_t rights;
|
||||
#endif
|
||||
|
||||
devfs_get_cdevpriv((void **) &filemon);
|
||||
if ((error = devfs_get_cdevpriv((void **) &filemon)) != 0)
|
||||
return (error);
|
||||
|
||||
switch (cmd) {
|
||||
/* Set the output file descriptor. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue