diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2019-06-06 01:16:04 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2019-06-06 01:16:04 +0000 |
| commit | 9f7521af587c2de56a2c19a7240f6beab2c7a81e (patch) | |
| tree | 8f8649d0da621447aded4785f6bbfa478326cda0 /sys/dev/mps | |
| parent | 96bf46170ac60aa7f47ef4e213296b096642d044 (diff) | |
Notes
Diffstat (limited to 'sys/dev/mps')
| -rw-r--r-- | sys/dev/mps/mps_user.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/mps/mps_user.c b/sys/dev/mps/mps_user.c index 1770df60e1e2..b251b4fc6b92 100644 --- a/sys/dev/mps/mps_user.c +++ b/sys/dev/mps/mps_user.c @@ -802,8 +802,10 @@ mps_user_pass_thru(struct mps_softc *sc, mps_pass_thru_t *data) data->DataDirection = MPS_PASS_THRU_DIRECTION_READ; else data->DataOutSize = 0; - } else - return (EINVAL); + } else { + err = EINVAL; + goto RetFreeUnlocked; + } mps_dprint(sc, MPS_USER, "%s: req 0x%jx %d rpl 0x%jx %d " "data in 0x%jx %d data out 0x%jx %d data dir %d\n", __func__, |
