diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2018-01-02 19:29:30 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2018-01-02 19:29:30 +0000 |
| commit | 85f385b9aa30ce37a66fecac51ad9bf3a3d91c35 (patch) | |
| tree | c050a52696d84fab782badc1c76f58bb9b10624c /sys/dev/ath | |
| parent | 5d8501f487e973d6ab6a368360c9dcb101fd08e9 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ath')
| -rw-r--r-- | sys/dev/ath/if_ath_btcoex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath_btcoex.c b/sys/dev/ath/if_ath_btcoex.c index da0603978e4d..881a2c8acf95 100644 --- a/sys/dev/ath/if_ath_btcoex.c +++ b/sys/dev/ath/if_ath_btcoex.c @@ -459,7 +459,7 @@ ath_btcoex_ioctl(struct ath_softc *sc, struct ath_diag *ad) * pointer for us to use below in reclaiming the buffer; * may want to be more defensive. */ - outdata = malloc(outsize, M_TEMP, M_NOWAIT); + outdata = malloc(outsize, M_TEMP, M_NOWAIT | M_ZERO); if (outdata == NULL) { error = ENOMEM; goto bad; @@ -468,6 +468,7 @@ ath_btcoex_ioctl(struct ath_softc *sc, struct ath_diag *ad) switch (id) { default: error = EINVAL; + goto bad; } if (outsize < ad->ad_out_size) ad->ad_out_size = outsize; |
