mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-29 16:44:03 +00:00
Don't free the ap object if it was never created.
Submitted by: jkim
This commit is contained in:
parent
9f793d762d
commit
174cda8010
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154156
@ -985,7 +985,8 @@ amr_query_controller(struct amr_softc *sc)
|
||||
free(ap, M_DEVBUF);
|
||||
|
||||
ap = amr_enquiry(sc, 0, FC_DEL_LOGDRV, OP_SUP_DEL_LOGDRV, 0, &status);
|
||||
free(ap, M_DEVBUF);
|
||||
if (ap != NULL)
|
||||
free(ap, M_DEVBUF);
|
||||
if (!status) {
|
||||
sc->amr_ld_del_supported = 1;
|
||||
device_printf(sc->amr_dev, "delete logical drives supported by controller\n");
|
||||
|
Loading…
Reference in New Issue
Block a user