[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140501033412.GR3245@sirena.org.uk>
Date: Wed, 30 Apr 2014 20:34:12 -0700
From: Mark Brown <broonie@...nel.org>
To: Xiubo Li <Li.Xiubo@...escale.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] regmap: Fix possible ZERO_SIZE_PTR pointer dereferencing
error.
On Wed, Apr 30, 2014 at 05:31:08PM +0800, Xiubo Li wrote:
> Since we cannot make sure the 'len = pair_size * num_regs' will always
> be none zero from the users, and then if 'num_regs' equals to zero by
> mistake or other reasons, the kzalloc() will return ZERO_SIZE_PTR, which
> equals to ((void *)16).
Applied, thanks.
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists