Home
last modified time | relevance | path

Searched hist:"05 d887b4619e54a2b7d487ac1c31b4544ce58533" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/lib/
H A Dcircbuf.c05d887b4619e54a2b7d487ac1c31b4544ce58533 Wed May 03 21:20:10 UTC 2017 xypron.glpk@gmx.de <xypron.glpk@gmx.de> lib: circbuf: avoid possible null pointer dereference

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@gmx.de>