[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+55aFyxtjiaA=BqHmHbGJqm3cE-cqboCuLXnKxiu4LfHRXnmg@mail.gmail.com>
Date: Tue, 26 Feb 2013 09:54:37 -0800
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Wolfram Sang <wsa@...-dreams.de>
Cc: Jean Delvare <khali@...ux-fr.org>, linux-i2c@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PULL REQUEST] i2c for 3.9
On Mon, Feb 25, 2013 at 12:27 PM, Wolfram Sang <wsa@...-dreams.de> wrote:
>
> here are the changes for the i2c subsystem for 3.9. Highlights:
> ....
> In addition, there is the usual bunch of fixes, cleanups, devm_*
> conversions, etc. Please pull.
Pulled, but when doing the conflict resolution, I noted that at least
one devm_* conversion had been done incorrectly. It's an older one,
but then there were changes to the area that made it conflict, and
Inotied.
These three lines have two separate bugs in them:
i2c->regs = devm_request_and_ioremap(&pdev->dev, res);
if (i2c->regs == NULL) {
dev_err(&pdev->dev, "cannot request and map IO\n");
The bugs are:
(a) the error case for devm_request_and_ioremap() doesn't return NULL
(b) dev_err() is very wrong, since one of the whole points of devm_*
is that it already prints out errors for the error case.
There have been other complaints about the mindless devm_* conversion
lately (it changes the order of deallocations which can be deadly), so
please please *please* be more careful about these kinds of "trivial"
patches.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists