]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Handle a NULL thread pointer in linux_close_file().
authorMark Johnston <markj@FreeBSD.org>
Wed, 15 Jan 2020 15:31:35 +0000 (15:31 +0000)
committerMark Johnston <markj@FreeBSD.org>
Wed, 15 Jan 2020 15:31:35 +0000 (15:31 +0000)
commita7e348d7cf599f7ca94773d670d1601ff8daad44
tree22ae73d9685ff31b2a30523da10c50124c2b0541
parent8fac174c3ead4383eae8b8e695912b814092b49b
Handle a NULL thread pointer in linux_close_file().

This can happen if a file is closed during unix socket GC.  The same bug
was fixed for devfs descriptors in r228361.

PR: 242913
Reported and tested by: iz-rpi03@hs-karlsruhe.de
Reviewed by: hselasky, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23178
sys/compat/linuxkpi/common/src/linux_compat.c