mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Don't dereference a pointer immediately after determining that it is
equal to NULL. [1] While I'm here, s/xb/xbd/ (the name changed a long time ago but this instance wasn't corrected). Reported by: PVS-Studio [1]
This commit is contained in:
parent
8cb15594b3
commit
bcccdfa37b
1 changed files with 1 additions and 1 deletions
|
|
@ -674,7 +674,7 @@ xbd_open(struct disk *dp)
|
|||
struct xbd_softc *sc = dp->d_drv1;
|
||||
|
||||
if (sc == NULL) {
|
||||
printf("xb%d: not found", sc->xbd_unit);
|
||||
printf("xbd%d: not found", dp->d_unit);
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue