Date: Sat, 4 Mar 2023 09:12:50 GMT From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 96a8c6aa375a - main - linux(4): Fixup of the pointer cast when comparing to an integer Message-ID: <202303040912.3249Cop0078963@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303040912.3249Cop0078963>