summaryrefslogtreecommitdiffstats
path: root/sys/amd64/linux32/linux.h
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2015-10-29 13:53:37 +0000
committerhselasky <hselasky@FreeBSD.org>2015-10-29 13:53:37 +0000
commit881f337ccc3fc73eae4129c766c46b4288c2abee (patch)
tree9d311434c63ece73a5db45b9fa8d95ee80b0d3dc /sys/amd64/linux32/linux.h
parent603bc9566a76827287a17e9826bb4136ee5b6c11 (diff)
downloadFreeBSD-src-881f337ccc3fc73eae4129c766c46b4288c2abee.zip
FreeBSD-src-881f337ccc3fc73eae4129c766c46b4288c2abee.tar.gz
Add missing NULL check in physio().
When destroying a character device the si_devsw field is set to NULL before all references are gone, to indicate the character device is going away. This can cause a NULL-dereference fault inside physio(). The callers of physio() should own a thread reference on the cdev and if si_devsw is seen as non-NULL, it is usable during the execution of the function. Else an ENXIO error code is returned. Reviewed by: kib MFC after: 2 weeks
Diffstat (limited to 'sys/amd64/linux32/linux.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud