]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
unix: fix the ad hoc STAILQ_PREPEND()
authorGleb Smirnoff <glebius@FreeBSD.org>
Tue, 9 Apr 2024 00:02:00 +0000 (17:02 -0700)
committerGleb Smirnoff <glebius@FreeBSD.org>
Tue, 9 Apr 2024 00:02:00 +0000 (17:02 -0700)
commitd1cbb17a873c787a527316bbb27551e97d5ad30c
treebe0e9f9dae12bc1192cd46f3f4ad9e79e8842100
parentf7c4d12bcd5bd7f7fbf6bf9fa601c47e7f97bc5f
unix: fix the ad hoc STAILQ_PREPEND()

If there is nothing to prepend, don't try STAILQ_INSERT_HEAD().

Fixes: d80a97def9a1db6f07f5d2e68f7ad62b27918947
Reported-by: syzbot+bb7f3d07c79b5faf8de8@syzkaller.appspotmail.com
sys/kern/uipc_usrreq.c