]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.suse/suse-ppc32-mol-sheep
Move xen patchset to new version's subdir.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.suse / suse-ppc32-mol-sheep
diff --git a/src/patches/suse-2.6.27.31/patches.suse/suse-ppc32-mol-sheep b/src/patches/suse-2.6.27.31/patches.suse/suse-ppc32-mol-sheep
new file mode 100644 (file)
index 0000000..9908c4b
--- /dev/null
@@ -0,0 +1,27 @@
+Subject: mol build fix
+From: schwab@suse.de
+
+---
+ drivers/macintosh/mol/sheep.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/macintosh/mol/sheep.c
++++ b/drivers/macintosh/mol/sheep.c
+@@ -82,7 +82,7 @@ struct SheepVars {
+ #ifdef LINUX_26
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12))
+-#define compat_sk_alloc(a,b,c)  sk_alloc( (a), (b), &mol_proto, 1 )
++#define compat_sk_alloc(a,b,c)  sk_alloc(&init_net, (a), (b), &mol_proto)
+ #else
+ #define compat_sk_alloc(a,b,c)        sk_alloc( (a), (b), (c), NULL )
+ #endif
+@@ -558,7 +558,7 @@ sheep_net_ioctl( struct inode *inode, st
+               name[19] = 0;
+               // Find card
+-              if( !(v->ether=dev_get_by_name(name)) )
++              if( !(v->ether=dev_get_by_name(&init_net, name)) )
+                       return -ENODEV;
+               // Is it Ethernet?