]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net/s2io: set_rxd_buffer_pointer returns -ENOMEM, not ENOMEM
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Wed, 14 May 2008 23:20:17 +0000 (16:20 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Sat, 31 May 2008 02:19:19 +0000 (22:19 -0400)
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Ramkrishna Vepa <ram.vepa@neterion.com>
Cc: Rastapur Santosh <santosh.rastapur@neterion.com>
Cc: Sivakumar Subramani <sivakumar.subramani@neterion.com>
Cc: Sreenivasa Honnur <sreenivasa.honnur@neterion.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/s2io.c

index 326c94122b26ec467fdd049f12228aee943ad4f8..dcc953e57ab180b53ae47d9f5b114cf0e209c832 100644 (file)
@@ -6997,7 +6997,7 @@ static  int rxd_owner_bit_reset(struct s2io_nic *sp)
                                                       &skb,(u64 *)&temp0_64,
                                                       (u64 *)&temp1_64,
                                                       (u64 *)&temp2_64,
-                                                       size) == ENOMEM) {
+                                                       size) == -ENOMEM) {
                                        return 0;
                                }