git: ee9a8a9730be - stable/15 - tcp_hostcache: explicitly typecast atomic_load_int to (int) for comparison

Richard Scheffenegger <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src,gmane.os.freebsd.devel.stable.scm
Message-ID <[email protected]>
The branch stable/15 has been updated by rscheff:

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

commit ee9a8a9730beab01d94f7d675c82d195a91876d6
Author:     Richard Scheffenegger <[email protected]>
AuthorDate: 2026-07-21 14:51:02 +0000
Commit:     Richard Scheffenegger <[email protected]>
CommitDate: 2026-07-28 08:28:59 +0000

    tcp_hostcache: explicitly typecast atomic_load_int to (int) for comparison
    
    Sponsored by:   NetApp, Inc.
    MFC after:      1 week
    Reviewed By:    tuexen, #transport, markj
    Differential Revision: https://reviews.freebsd.org/D58360
    
    (cherry picked from commit f22b08443f6ae3620dd14ade4e2376b8531fd6f3)
---
 sys/netinet/tcp_hostcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/tcp_hostcache.c b/sys/netinet/tcp_hostcache.c
index df639876a85c..0a08ee4619d8 100644
--- a/sys/netinet/tcp_hostcache.c
+++ b/sys/netinet/tcp_hostcache.c
@@ -769,7 +769,7 @@ tcp_hc_purge_internal(int all)
 			    "bucket length out of range at %u: %u", i,
 			    head->hch_length));
 			if (all ||
-			    atomic_load_int(&hc_entry->hc_expire) <= 0) {
+			    (int)atomic_load_int(&hc_entry->hc_expire) <= 0) {
 				if (hc_prev != NULL) {
 					KASSERT(hc_entry ==
 					    CK_SLIST_NEXT(hc_prev, hc_q),
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.