]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/key/af_key.c
net: correct off-by-one write allocations reports
[mirror_ubuntu-artful-kernel.git] / net / key / af_key.c
index 643c1be2d02e85c4622d87830db0b90942cdb2e3..dba9abd27f90d42cb240c08d6a08e7529a5e6797 100644 (file)
@@ -3662,8 +3662,8 @@ static int pfkey_seq_show(struct seq_file *f, void *v)
                seq_printf(f ,"%p %-6d %-6u %-6u %-6u %-6lu\n",
                               s,
                               atomic_read(&s->sk_refcnt),
-                              atomic_read(&s->sk_rmem_alloc),
-                              atomic_read(&s->sk_wmem_alloc),
+                              sk_rmem_alloc_get(s),
+                              sk_wmem_alloc_get(s),
                               sock_i_uid(s),
                               sock_i_ino(s)
                               );