From: Martin Schwidefsky <schwidefsky@de.ibm.com>
To: Roel Kluin <roel.kluin@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>,
wein@de.ibm.com
Subject: Re: [PATCH] dasd: PTR_ERR return of wrong pointer in dasd_alias_make_device_known_to_lcu()
Date: Mon, 7 Dec 2009 14:22:13 +0100 [thread overview]
Message-ID: <20091207142213.286a8824@mschwide.boeblingen.de.ibm.com> (raw)
In-Reply-To: <4B1D00B0.5030209@gmail.com>
On Mon, 07 Dec 2009 14:18:40 +0100
Roel Kluin <roel.kluin@gmail.com> wrote:
> Return the PTR_ERR of the correct pointer.
>
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> ---
> drivers/s390/block/dasd_alias.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> Unless I am mistaken?
>
> diff --git a/drivers/s390/block/dasd_alias.c b/drivers/s390/block/dasd_alias.c
> index 70a008c..fa37148 100644
> --- a/drivers/s390/block/dasd_alias.c
> +++ b/drivers/s390/block/dasd_alias.c
> @@ -217,7 +217,7 @@ int dasd_alias_make_device_known_to_lcu(struct dasd_device *device)
> spin_unlock_irqrestore(&aliastree.lock, flags);
> newlcu = _allocate_lcu(uid);
> if (IS_ERR(newlcu))
> - return PTR_ERR(lcu);
> + return PTR_ERR(newlcu);
> spin_lock_irqsave(&aliastree.lock, flags);
> lcu = _find_lcu(server, uid);
> if (!lcu) {
You are not mistaken. I'll add the patch to the queue. Thanks.
--
blue skies,
Martin.
"Reality continues to ruin my life." - Calvin.
prev parent reply other threads:[~2009-12-07 13:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-07 13:18 Roel Kluin
2009-12-07 13:22 ` Martin Schwidefsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091207142213.286a8824@mschwide.boeblingen.de.ibm.com \
--to=schwidefsky@de.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roel.kluin@gmail.com \
--cc=wein@de.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®