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);