All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergey Shtylyov <s.shtylyov@omprussia.ru>
To: Wolfram Sang <wsa+renesas@sang-engineering.com>,
	<linux-i2c@vger.kernel.org>
Cc: <linux-renesas-soc@vger.kernel.org>
Subject: Re: [PATCH] i2c: rcar: add IRQ check
Date: Mon, 5 Apr 2021 17:34:42 +0300	[thread overview]
Message-ID: <31fdbb1b-4e1a-9af4-f805-afd2f739fca4@omprussia.ru> (raw)
In-Reply-To: <8a05ea84-28e6-4d76-4f6d-55fb0a0cdf24@omprussia.ru>

On 4/4/21 8:52 PM, Sergey Shtylyov wrote:

> The driver neglects to check the result of platform_get_irq()'s call and
> blithely passes the negative error codes to devm_request_irq() (which
> takes *unsigned* IRQ #), causing it to fail with -EINVAL, overriding
> an original error code.  Stop calling devm_request_irq() with the
> invalid IRQ #s.
> 
> Fixes: 6ccbe607132b ("i2c: add Renesas R-Car I2C driver")
> Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>

   Sorry, forgot to mention that this patch is against the 'master' branch of
Wolfram's 'linux.git' repo...

MBR, Sergey

  reply	other threads:[~2021-04-05 14:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-04 17:52 [PATCH] i2c: rcar: add IRQ check Sergey Shtylyov
2021-04-05 14:34 ` Sergey Shtylyov [this message]
2021-04-06  7:37 ` Geert Uytterhoeven
2021-04-08 21:04 ` Wolfram Sang
2021-04-09 19:33   ` Sergey Shtylyov

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=31fdbb1b-4e1a-9af4-f805-afd2f739fca4@omprussia.ru \
    --to=s.shtylyov@omprussia.ru \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=wsa+renesas@sang-engineering.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.