Module Name:    src
Committed By:   maxv
Date:           Tue Jan  7 06:10:19 UTC 2020

Modified Files:
        src/sys/dev/raidframe: rf_compat32.c

Log Message:
Fix big bugs.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/raidframe/rf_compat32.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/raidframe/rf_compat32.c
diff -u src/sys/dev/raidframe/rf_compat32.c:1.7 src/sys/dev/raidframe/rf_compat32.c:1.8
--- src/sys/dev/raidframe/rf_compat32.c:1.7	Thu Dec 12 02:15:43 2019
+++ src/sys/dev/raidframe/rf_compat32.c	Tue Jan  7 06:10:18 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: rf_compat32.c,v 1.7 2019/12/12 02:15:43 pgoyette Exp $	*/
+/*	$NetBSD: rf_compat32.c,v 1.8 2020/01/07 06:10:18 maxv Exp $	*/
 
 /*
  * Copyright (c) 2017 Matthew R. Green
@@ -101,7 +101,7 @@ rf_config_netbsd32(struct raid_softc *rs
 	k_cfg = RF_Malloc(sizeof(*k_cfg));
 	if (k_cfg == NULL) {
 		RF_Free(k_cfg32, sizeof(RF_Config_t32));
-		RF_Free(k_cfg, sizeof(RF_Config_t));
+		return ENOMEM;
 	}
 	k_cfg->numCol = k_cfg32->numCol;
 	k_cfg->numSpare = k_cfg32->numSpare;

Reply via email to