[PATCH] net/s2io: set_rxd_buffer_pointer returns -ENOMEM, not ENOMEM - Kernel

This is a discussion on [PATCH] net/s2io: set_rxd_buffer_pointer returns -ENOMEM, not ENOMEM - Kernel ; Signed-off-by: Marcin Slusarz Cc: Ramkrishna Vepa Cc: Rastapur Santosh Cc: Sivakumar Subramani Cc: Sreenivasa Honnur Cc: netdev@vger.kernel.org --- 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 +++ ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [PATCH] net/s2io: set_rxd_buffer_pointer returns -ENOMEM, not ENOMEM

  1. [PATCH] net/s2io: set_rxd_buffer_pointer returns -ENOMEM, not ENOMEM

    Signed-off-by: Marcin Slusarz
    Cc: Ramkrishna Vepa
    Cc: Rastapur Santosh
    Cc: Sivakumar Subramani
    Cc: Sreenivasa Honnur
    Cc: netdev@vger.kernel.org
    ---
    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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  2. RE: [PATCH] net/s2io: set_rxd_buffer_pointer returns -ENOMEM, notENOMEM

    Good catch!

    Jeff,
    Please accept patch.

    Thanks,
    Ram

    > -----Original Message-----
    > From: Marcin Slusarz [mailto:marcin.slusarz@gmail.com]
    > Sent: Sunday, May 11, 2008 1:04 PM
    > To: LKML
    > Cc: Ramkrishna Vepa; Rastapur Santosh; Sivakumar Subramani; Sreenivasa
    > Honnur; netdev@vger.kernel.org
    > Subject: [PATCH] net/s2io: set_rxd_buffer_pointer returns -ENOMEM,
    > notENOMEM
    >
    > Signed-off-by: Marcin Slusarz
    > Cc: Ramkrishna Vepa
    > Cc: Rastapur Santosh
    > Cc: Sivakumar Subramani
    > Cc: Sreenivasa Honnur
    > Cc: netdev@vger.kernel.org
    > ---
    > 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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

+ Reply to Thread