diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-07-30 16:29:40 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-31 02:28:12 -0700 |
commit | 7ce1b0edcb11f90f6fc5e0ceecff467f329889a0 (patch) | |
tree | 75f3a4288c0045e2cbbc0a63608203be0423be89 /fs/readdir.c | |
parent | ccc7911fbd1c5af9b60453d3a8cca0a36402fee5 (diff) | |
download | blackbird-obmc-linux-7ce1b0edcb11f90f6fc5e0ceecff467f329889a0.tar.gz blackbird-obmc-linux-7ce1b0edcb11f90f6fc5e0ceecff467f329889a0.zip |
[NET]: Call uninit if necessary in register_netdevice
This patch makes register_netdevice call dev->uninit if the regsitration
fails after dev->init has completed successfully. Very few drivers use
the init/uninit calls but at least one (drivers/net/wan/sealevel.c) may
leak without this change.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/readdir.c')
0 files changed, 0 insertions, 0 deletions