]> git.droids-corp.org - dpdk.git/commit
raw/cnxk_gpio: check pointer before use in self test
authorTomasz Duszynski <tduszynski@marvell.com>
Tue, 22 Feb 2022 08:28:17 +0000 (09:28 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 23 Feb 2022 17:28:10 +0000 (18:28 +0100)
commitee05a93e1e6633d0fdec409faf09f12a2e05b991
treeef0bcab76c6486f7e4be958ea8b76d76edbf313b
parenta8e1030905537b8564b2da024040b20479b5271c
raw/cnxk_gpio: check pointer before use in self test

Even though nonexistent cnxk_gpio is unlikely at this point
it's a good practice to check pointers before using them.

Fixes: 0e6557b448fa ("raw/cnxk_gpio: add self test")
Coverity issue: 376502

Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c