xen/netfront: teardown the device before unregistering it.
authorIan Campbell <[email protected]>
Mon, 25 Jun 2012 22:48:41 +0000 (22:48 +0000)
committerDavid S. Miller <[email protected]>
Wed, 27 Jun 2012 08:25:41 +0000 (01:25 -0700)
commit6bc96d047fe32d76ef79f3195c52a542edf7c705
tree9fb623c6a45ad9cbe4ad431f604837abab3c7770
parent149ddd83a92b02c658d6c61f3276eb6500d585e8
xen/netfront: teardown the device before unregistering it.

Fixes:
[   15.470311] WARNING: at /local/scratch/ianc/devel/kernels/linux/fs/sysfs/file.c:498 sysfs_attr_ns+0x95/0xa0()
[   15.470326] sysfs: kobject eth0 without dirent
[   15.470333] Modules linked in:
[   15.470342] Pid: 12, comm: xenwatch Not tainted 3.4.0-x86_32p-xenU #93
and
[    9.150554] BUG: unable to handle kernel paging request at 2b359000
[    9.150577] IP: [<c1279561>] linkwatch_do_dev+0x81/0xc0
[    9.150592] *pdpt = 000000002c3c9027 *pde = 0000000000000000
[    9.150604] Oops: 0002 [#1] SMP
[    9.150613] Modules linked in:

This is http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675190

Reported-by: George Shuklin <[email protected]>
Signed-off-by: Ian Campbell <[email protected]>
Tested-by: William Dauchy <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
drivers/net/xen-netfront.c