Re: [PATCH] regulator: max8660: fix assignment of pdata to data that becomes dead

From: Mark Brown
Date: Wed Apr 08 2015 - 07:03:22 EST

On Tue, Apr 07, 2015 at 11:06:46PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> pdata is assigned to &pdata_of, however, pdata_of becomes dead (when it
> goes out of scope) so pdata effectively becomes a dead pointer to the
> out of scope object. This is detected by static analysis:

Applied, thanks

Attachment: signature.asc
Description: Digital signature