git: c15b2e046e8c - stable/14 - sys_pipe: consistently use cr_ruidinfo for accounting of pipebuf

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sat, 05 Oct 2024 07:11:19 UTC
The branch stable/14 has been updated by kib:

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

commit c15b2e046e8cb84c5bdae98ee742b477dab7ff24
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-09-20 18:48:19 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-10-05 07:08:55 +0000

    sys_pipe: consistently use cr_ruidinfo for accounting of pipebuf
    
    (cherry picked from commit a52b30ff98cdab82af140285fa7fcdf1036fef27)
---
 sys/kern/sys_pipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 20bedd665ca5..c34c7b24a269 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1678,7 +1678,7 @@ pipe_free_kmem(struct pipe *cpipe)
 
 	if (cpipe->pipe_buffer.buffer != NULL) {
 		atomic_subtract_long(&amountpipekva, cpipe->pipe_buffer.size);
-		chgpipecnt(cpipe->pipe_pair->pp_owner->cr_uidinfo,
+		chgpipecnt(cpipe->pipe_pair->pp_owner->cr_ruidinfo,
 		    -cpipe->pipe_buffer.size, 0);
 		vm_map_remove(pipe_map,
 		    (vm_offset_t)cpipe->pipe_buffer.buffer,