diff options
author | Dmitry Chagin <dchagin@FreeBSD.org> | 2023-03-04 09:11:39 +0000 |
---|---|---|
committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2023-03-04 09:11:39 +0000 |
commit | 96a8c6aa375a33dba5a704ed91b7633b7416291a (patch) | |
tree | 353c91858be51f8aba09206dff0ee56d88e708b6 | |
parent | 8d6dd96d50d2e6fea4cbbdb30ff12cc5730b7fbd (diff) | |
download | src-96a8c6aa375a33dba5a704ed91b7633b7416291a.tar.gz src-96a8c6aa375a33dba5a704ed91b7633b7416291a.zip |
linux(4): Fixup of the pointer cast when comparing to an integer
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 4c95745e4307..27cf90b96a71 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -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); |