]> err.no Git - linux-2.6/blobdiff - net/irda/af_irda.c
[PATCH] inotify: fix deadlock found by lockdep
[linux-2.6] / net / irda / af_irda.c
index 2f37c9f35e272a5e9026947835584806ff3324cc..17699eeb64d78274481bca74888dfc41313fb548 100644 (file)
@@ -42,7 +42,6 @@
  *
  ********************************************************************/
 
-#include <linux/config.h>
 #include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/types.h>
@@ -309,7 +308,7 @@ static void irda_connect_response(struct irda_sock *self)
 
        IRDA_ASSERT(self != NULL, return;);
 
-       skb = dev_alloc_skb(64);
+       skb = alloc_skb(64, GFP_ATOMIC);
        if (skb == NULL) {
                IRDA_DEBUG(0, "%s() Unable to allocate sk_buff!\n",
                           __FUNCTION__);