]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: fix possible NULL dereference in linuxkpi_page_frag_alloc()
authorBjoern A. Zeeb <bz@FreeBSD.org>
Wed, 11 Jan 2023 23:40:05 +0000 (23:40 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Wed, 11 Jan 2023 23:40:05 +0000 (23:40 +0000)
commit51e94a4658d23016dd0ae67c189a89f53281cbcd
treed4f49488215c683a291b283259bf80e8e8eca9e7
parentad70f2e22ef29f94bf5208b3a9a2389575330b06
LinuxKPI: fix possible NULL dereference in linuxkpi_page_frag_alloc()

Fix a possible NULL pointer deref in case alloc_pages() fails.
This is theoretical so far as up to now no code in the tree uses
linuxkpi_page_frag_alloc().

Reported by: Coverity via emaste
Coverity ID: 1502345
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
X-MFC-with: 55038a6306a570c9f2df89f5ad076de0f7d98152
sys/compat/linuxkpi/common/src/linux_page.c