[U-Boot] [U-Boot, 1/1] lib: circbuf: avoid possible null pointer dereference
Tom Rini
trini at konsulko.com
Sun May 7 01:28:01 UTC 2017
On Wed, May 03, 2017 at 11:20:10PM +0200, xypron.glpk at gmx.de wrote:
> We should not first dereference p and afterwards assert that is
> was not NULL. Instead do the assert first.
>
> The problem was indicated by cppcheck.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170506/9788f024/attachment.sig>
More information about the U-Boot
mailing list