[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140730122012.GB13965@amd.pavel.ucw.cz>
Date: Wed, 30 Jul 2014 14:20:12 +0200
From: Pavel Machek <pavel@...x.de>
To: Charles Manning <cdhmanning@...il.com>
Cc: linux-kernel@...r.kernel.org, s.trumtrar@...gutronix.de,
dinguyen@...era.com, cslee@...era.com
Subject: Re: [PATCH 2/3] clk: Prevent a hanging pointer being abused
On Tue 2014-07-22 14:20:33, Charles Manning wrote:
> Clock init structs are normally created on the stack.
>
> If the pointer is left intact after clk_register then there is
> opportunity for clk drivers to dereference the pointer.
>
> This was causing a problem in socfpga/clk.c for instance.
>
> Better to NULL out the pointer so it can't be abused.
>
> Signed-off-by: Charles Manning <cdhmanning@...il.com>
Acked-by: Pavel Machek <pavel@...x.de>
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
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