diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-11-12 08:47:10 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-11-12 08:47:10 +0000 |
commit | 70e13c31cbd29d45dcd705fb54d683131825888c (patch) | |
tree | c9e024dafa7346f8c483c39d77ee3e223863a1ef /usr.bin/locale | |
parent | a4ba623b63629f2de1042e3223af8ac94eb170d8 (diff) | |
download | FreeBSD-src-70e13c31cbd29d45dcd705fb54d683131825888c.zip FreeBSD-src-70e13c31cbd29d45dcd705fb54d683131825888c.tar.gz |
MFC r290140:
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
Diffstat (limited to 'usr.bin/locale')
0 files changed, 0 insertions, 0 deletions