RE: [PATCH] net/s2io: set_rxd_buffer_pointer returns -ENOMEM, notENOMEM
From: Ramkrishna Vepa
Date: Mon May 12 2008 - 21:11:23 EST
Good catch!
Jeff,
Please accept patch.
Thanks,
Ram
> -----Original Message-----
> From: Marcin Slusarz [mailto:marcin.slusarz@xxxxxxxxx]
> Sent: Sunday, May 11, 2008 1:04 PM
> To: LKML
> Cc: Ramkrishna Vepa; Rastapur Santosh; Sivakumar Subramani; Sreenivasa
> Honnur; netdev@xxxxxxxxxxxxxxx
> Subject: [PATCH] net/s2io: set_rxd_buffer_pointer returns -ENOMEM,
> notENOMEM
>
> 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/