handle potential null ptr
Noticed by: Coverity Prevent analysis tool
This commit is contained in:
parent
769eb705f6
commit
c981c7caa6
@ -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