[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180124170448.GJ9366@sirena.org.uk>
Date: Wed, 24 Jan 2018 17:04:48 +0000
From: Mark Brown <broonie@...nel.org>
To: David Lechner <david@...hnology.com>
Cc: Lars-Peter Clausen <lars@...afoo.de>, linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: Re: [PATCH 1/2] regmap: fix NULL pointer dereference in
regmap_name_read_file()
On Wed, Jan 24, 2018 at 10:27:22AM -0600, David Lechner wrote:
> On 01/24/2018 10:19 AM, Mark Brown wrote:
> > Indeed. It is an improvement but not exactly helpful.
> Would it be better if it said "this regmap does not have driver" instead
> of "(null)"?
That's both not idiomatically good and isn't even true... ideally we'd
be able to get some sort of string out of the user, but otherwise
"nodev" or perhaps printing the pointer to the regmap (to avoid
collisions if there's more than one of these in a system).
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists