Page MenuHomeFreeBSD

D25987.diff
No OneTemporary

D25987.diff

Index: head/sys/cam/mmc/mmc_da.c
===================================================================
--- head/sys/cam/mmc/mmc_da.c
+++ head/sys/cam/mmc/mmc_da.c
@@ -789,7 +789,6 @@
softc = (struct sdda_softc *)malloc(sizeof(*softc), M_DEVBUF,
M_NOWAIT|M_ZERO);
-
if (softc == NULL) {
printf("sddaregister: Unable to probe new device. "
"Unable to allocate softc\n");
@@ -802,6 +801,7 @@
if (softc->mmcdata == NULL) {
printf("sddaregister: Unable to probe new device. "
"Unable to allocate mmcdata\n");
+ free(softc, M_DEVBUF);
return (CAM_REQ_CMP_ERR);
}
periph->softc = softc;

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 14, 1:05 AM (34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29644692
Default Alt Text
D25987.diff (620 B)

Event Timeline