linux(4): Fixup of the pointer cast when comparing to an integer

This commit is contained in:
Dmitry Chagin 2023-03-04 12:11:39 +03:00
parent 8d6dd96d50
commit 96a8c6aa37

View File

@ -2189,7 +2189,7 @@ linux_ifconf(struct thread *td, struct ifconf *uifc)
cbs.max_len = maxphys - 1;
/* handle the 'request buffer size' case */
if ((l_uintptr_t)ifc.ifc_buf == PTROUT(NULL)) {
if (PTRIN(ifc.ifc_buf) == NULL) {
ifc.ifc_len = 0;
NET_EPOCH_ENTER(et);
if_foreach(linux_ifconf_ifnet_cb, &ifc);