llc2: Call llc_station_exit() on llc2_init() failure path
authorBen Hutchings <ben@decadent.org.uk>
Mon, 13 Aug 2012 02:50:43 +0000 (02:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2012 23:51:40 +0000 (16:51 -0700)
commitf4f8720febf0d785a054fc09bde5e3ad09728a58
treef0f23afc9145ee25773ed9c8bffa0a706a46216a
parent6024935f5ff5f1646bce8404416318e5fd4a0c4a
llc2: Call llc_station_exit() on llc2_init() failure path

Otherwise the station packet handler will remain registered even though
the module is unloaded.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/llc/af_llc.c
net/llc/llc_station.c