X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fax25%2Fax25_iface.c;h=8443af57a3740253f10ddcf505246165fee5e56a;hb=a25606c845856e5ca5ed54d23cab077e3a49bf10;hp=16be0c14780a18415bf203f617b8cb1c4cdb0808;hpb=cd354f1ae75e6466a7e31b727faede57a1f89ca5;p=linux-2.6 diff --git a/net/ax25/ax25_iface.c b/net/ax25/ax25_iface.c index 16be0c1478..8443af57a3 100644 --- a/net/ax25/ax25_iface.c +++ b/net/ax25/ax25_iface.c @@ -69,7 +69,6 @@ void ax25_protocol_release(unsigned int pid) if (protocol->pid == pid) { protocol_list = protocol->next; write_unlock_bh(&protocol_list_lock); - kfree(protocol); return; } @@ -78,7 +77,6 @@ void ax25_protocol_release(unsigned int pid) s = protocol->next; protocol->next = protocol->next->next; write_unlock_bh(&protocol_list_lock); - kfree(s); return; }