git: 96a8c6aa375a - main - linux(4): Fixup of the pointer cast when comparing to an integer

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Sat, 04 Mar 2023 09:12:50 UTC
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=96a8c6aa375a33dba5a704ed91b7633b7416291a

commit 96a8c6aa375a33dba5a704ed91b7633b7416291a
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-03-04 09:11:39 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-03-04 09:11:39 +0000

    linux(4): Fixup of the pointer cast when comparing to an integer
---
 sys/compat/linux/linux_ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);