aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorPaul Saab <ps@FreeBSD.org>2006-04-20 03:05:02 +0000
committerPaul Saab <ps@FreeBSD.org>2006-04-20 03:05:02 +0000
commitc1885ab8c5741b40470b086eb350447840b5010f (patch)
treeef9c645aaaa0de0bdeb8a78ecdf9bbddc3bc7d96 /sys/dev
parentbe4db476a6c3853e81c68a15b540879350b350ac (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ciss/ciss.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index 47dca32c2f1bd..2071e74ad7f3e 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -3595,7 +3595,7 @@ ciss_notify_physical(struct ciss_softc *sc, struct ciss_notify *cn)
static void
ciss_notify_hotplug(struct ciss_softc *sc, struct ciss_notify *cn)
{
- struct ciss_lun_report *cll;
+ struct ciss_lun_report *cll = NULL;
int bus, target;
int s;
@@ -3633,6 +3633,9 @@ ciss_notify_hotplug(struct ciss_softc *sc, struct ciss_notify *cn)
ciss_printf(sc, "Unknown hotplug event %d\n", cn->subclass);
return;
}
+
+ if (cll != NULL)
+ free(cll, CISS_MALLOC_CLASS);
}
/************************************************************************