19 lines
672 B
Diff
19 lines
672 B
Diff
Index: xen-3.0.5-testing/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
|
|
===================================================================
|
|
--- xen-3.0.5-testing.orig/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
|
|
+++ xen-3.0.5-testing/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
|
|
@@ -294,6 +294,13 @@ static int __devinit netfront_probe(stru
|
|
int err;
|
|
struct net_device *netdev;
|
|
struct netfront_info *info;
|
|
+ unsigned int handle;
|
|
+
|
|
+ err = xenbus_scanf(XBT_NIL, dev->nodename, "handle", "%u", &handle);
|
|
+ if (err != 1) {
|
|
+ xenbus_dev_fatal(dev, err, "reading handle");
|
|
+ return err;
|
|
+ }
|
|
|
|
netdev = create_netdev(dev);
|
|
if (IS_ERR(netdev)) {
|