]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/socket.c
[IPSEC]: Use HMAC template and hash interface
[karo-tx-linux.git] / net / socket.c
index 565f5e8d11913c797500a517c03835eee6e15ff9..6d261bf206fc83ff9aa5411a25273f53be7139d0 100644 (file)
@@ -58,7 +58,6 @@
  *     Based upon Swansea University Computer Society NET3.039
  */
 
-#include <linux/config.h>
 #include <linux/mm.h>
 #include <linux/smp_lock.h>
 #include <linux/socket.h>
@@ -1179,7 +1178,8 @@ static int __sock_create(int family, int type, int protocol, struct socket **res
  */
 
        if (!(sock = sock_alloc())) {
-               printk(KERN_WARNING "socket: no more sockets\n");
+               if (net_ratelimit())
+                       printk(KERN_WARNING "socket: no more sockets\n");
                err = -ENFILE;          /* Not exactly a match, but its the
                                           closest posix thing */
                goto out;