[PATCH] net/s2io: set_rxd_buffer_pointer returns -ENOMEM, notENOMEM
From: Marcin Slusarz
Date: Sun May 11 2008 - 16:05:25 EST
Signed-off-by: Marcin Slusarz <marcin.slusarz@xxxxxxxxx>
Cc: Ramkrishna Vepa <ram.vepa@xxxxxxxxxxxx>
Cc: Rastapur Santosh <santosh.rastapur@xxxxxxxxxxxx>
Cc: Sivakumar Subramani <sivakumar.subramani@xxxxxxxxxxxx>
Cc: Sreenivasa Honnur <sreenivasa.honnur@xxxxxxxxxxxx>
Cc: netdev@xxxxxxxxxxxxxxx
---
compile tested only
---
drivers/net/s2io.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c
--- a/drivers/net/s2io.c
+++ b/drivers/net/s2io.c
@@ -6951,7 +6951,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;
}
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/