Merge tag 'gfs2-4.20.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2...
[linux-2.6-block.git] / net / llc / llc_core.c
index 260b3dc1b4a2ab4545982b0b36478d6a6cf0b71f..64d4bef04e7302db8bec14965ed92ee5867b5a1d 100644 (file)
@@ -127,9 +127,7 @@ void llc_sap_close(struct llc_sap *sap)
        list_del_rcu(&sap->node);
        spin_unlock_bh(&llc_sap_list_lock);
 
-       synchronize_rcu();
-
-       kfree(sap);
+       kfree_rcu(sap, rcu);
 }
 
 static struct packet_type llc_packet_type __read_mostly = {