]> Pileus Git - ~andy/linux/blobdiff - net/ax25/af_ax25.c
[AX25] ax25_route: make ax25_route_lock BH safe
[~andy/linux] / net / ax25 / af_ax25.c
index 8fc64e3150a26cd437aeee127806cab19cda110d..5a4337a29094e37e6626aa11f487afcc3b3aece7 100644 (file)
@@ -1928,12 +1928,10 @@ static int ax25_info_show(struct seq_file *seq, void *v)
                   ax25->paclen);
 
        if (ax25->sk != NULL) {
-               bh_lock_sock(ax25->sk);
-               seq_printf(seq," %d %d %ld\n",
+               seq_printf(seq, " %d %d %lu\n",
                           atomic_read(&ax25->sk->sk_wmem_alloc),
                           atomic_read(&ax25->sk->sk_rmem_alloc),
-                          ax25->sk->sk_socket != NULL ? SOCK_INODE(ax25->sk->sk_socket)->i_ino : 0L);
-               bh_unlock_sock(ax25->sk);
+                          sock_i_ino(ax25->sk));
        } else {
                seq_puts(seq, " * * *\n");
        }