diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2017-05-03 23:20:10 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-05 16:45:57 -0400 |
commit | 05d887b4619e54a2b7d487ac1c31b4544ce58533 (patch) | |
tree | a7096fcd96ac176998753945e9fd73ac93ae9be3 /drivers/mmc/arm_pl180_mmci.c | |
parent | 1275a44e2f0579aba11d59c92c1717d5f9abc5e9 (diff) |
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>
Diffstat (limited to 'drivers/mmc/arm_pl180_mmci.c')
0 files changed, 0 insertions, 0 deletions