[PATCH] s390/char/vmlogrdr: module initialization function should return negative errors - Kernel

This is a discussion on [PATCH] s390/char/vmlogrdr: module initialization function should return negative errors - Kernel ; Signed-off-by: Marcin Slusarz Cc: Martin Schwidefsky --- drivers/s390/char/vmlogrdr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c index d364e0b..e848734 100644 --- a/drivers/s390/char/vmlogrdr.c +++ b/drivers/s390/char/vmlogrdr.c @@ -858,7 +858,7 @@ static int __init vmlogrdr_init(void) for (i=0; i ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [PATCH] s390/char/vmlogrdr: module initialization function should return negative errors

  1. [PATCH] s390/char/vmlogrdr: module initialization function should return negative errors

    Signed-off-by: Marcin Slusarz
    Cc: Martin Schwidefsky
    ---
    drivers/s390/char/vmlogrdr.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c
    index d364e0b..e848734 100644
    --- a/drivers/s390/char/vmlogrdr.c
    +++ b/drivers/s390/char/vmlogrdr.c
    @@ -858,7 +858,7 @@ static int __init vmlogrdr_init(void)
    for (i=0; i < MAXMINOR; ++i ) {
    sys_ser[i].buffer = (char *) get_zeroed_page(GFP_KERNEL);
    if (!sys_ser[i].buffer) {
    - rc = ENOMEM;
    + rc = -ENOMEM;
    break;
    }
    sys_ser[i].current_position = sys_ser[i].buffer;
    --
    --
    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] s390/char/vmlogrdr: module initialization function should return negative errors

    Thanks, I will add this to git390.

    --
    blue skies,
    Martin.

    "Reality continues to ruin my life." - Calvin.


    --
    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