handle potential null ptr
Noticed by: Coverity Prevent analysis tool
This commit is contained in:
parent
46b28f77bd
commit
bccb3a4d86
@ -1884,7 +1884,9 @@ amr_describe_controller(struct amr_softc *sc)
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
prod = "unsupported controller";
|
||||
device_printf(sc->amr_dev, "<unsupported controller>\n");
|
||||
mtx_unlock(&sc->amr_io_lock);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user