diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2016-01-27 21:12:18 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2016-01-27 21:12:18 +0000 |
commit | e8c87a09dc53c500c3f68aa1f473eae2102e9c5f (patch) | |
tree | e02902cc0be29c16b68fd3ea680709f83c64659b /sys/dev/filemon | |
parent | 13f727c862f3c20431a5aab96e9d8f1faba9b9ed (diff) | |
download | src-e8c87a09dc53c500c3f68aa1f473eae2102e9c5f.tar.gz src-e8c87a09dc53c500c3f68aa1f473eae2102e9c5f.zip |
filemon_ioctl: Handle error from devfs_get_cdevpriv(9).
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=294949
Diffstat (limited to 'sys/dev/filemon')
-rw-r--r-- | sys/dev/filemon/filemon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/filemon/filemon.c b/sys/dev/filemon/filemon.c index 4721d0a0c45d..e16ad08ab836 100644 --- a/sys/dev/filemon/filemon.c +++ b/sys/dev/filemon/filemon.c @@ -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. */ |