From 1f0c8eae54cfc1583d70b62b325d72e8f4881edb Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Sun, 22 Feb 2004 09:55:48 +0000 Subject: Don't free k_cfg until we're finished using it -- reverse the order of two free commands. Reported by: "Ted Unangst" Approved by: rwatson (mentor), scottl --- sys/dev/raidframe/rf_freebsdkintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/raidframe') diff --git a/sys/dev/raidframe/rf_freebsdkintf.c b/sys/dev/raidframe/rf_freebsdkintf.c index 585fad7bc2a4..13f5abb6bd14 100644 --- a/sys/dev/raidframe/rf_freebsdkintf.c +++ b/sys/dev/raidframe/rf_freebsdkintf.c @@ -515,9 +515,9 @@ raidctlioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct thread *td) (caddr_t) specific_buf, k_cfg->layoutSpecificSize); if (retcode) { - RF_Free(k_cfg, sizeof(RF_Config_t)); RF_Free(specific_buf, k_cfg->layoutSpecificSize); + RF_Free(k_cfg, sizeof(RF_Config_t)); rf_printf(2, "raidctlioctl: retcode=%d " "copyin.2\n", retcode); return (retcode); -- cgit v1.3