Deleted Added
full compact
if_ath_ioctl.c (332288) if_ath_ioctl.c (332303)
1/*-
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 14 unchanged lines hidden (view full) ---

23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 14 unchanged lines hidden (view full) ---

23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: stable/11/sys/dev/ath/if_ath_ioctl.c 332288 2018-04-08 16:54:07Z brooks $");
31__FBSDID("$FreeBSD: stable/11/sys/dev/ath/if_ath_ioctl.c 332303 2018-04-08 20:50:16Z emaste $");
32
33/*
34 * Driver for the Atheros Wireless LAN controller.
35 *
36 * This software is derived from work of Atsushi Onoe; his contribution
37 * is greatly appreciated.
38 */
39

--- 152 unchanged lines hidden (view full) ---

192 if (ad->ad_id & ATH_DIAG_DYN) {
193 /*
194 * Allocate a buffer for the results (otherwise the HAL
195 * returns a pointer to a buffer where we can read the
196 * results). Note that we depend on the HAL leaving this
197 * pointer for us to use below in reclaiming the buffer;
198 * may want to be more defensive.
199 */
32
33/*
34 * Driver for the Atheros Wireless LAN controller.
35 *
36 * This software is derived from work of Atsushi Onoe; his contribution
37 * is greatly appreciated.
38 */
39

--- 152 unchanged lines hidden (view full) ---

192 if (ad->ad_id & ATH_DIAG_DYN) {
193 /*
194 * Allocate a buffer for the results (otherwise the HAL
195 * returns a pointer to a buffer where we can read the
196 * results). Note that we depend on the HAL leaving this
197 * pointer for us to use below in reclaiming the buffer;
198 * may want to be more defensive.
199 */
200 outdata = malloc(outsize, M_TEMP, M_NOWAIT);
200 outdata = malloc(outsize, M_TEMP, M_NOWAIT | M_ZERO);
201 if (outdata == NULL) {
202 error = ENOMEM;
203 goto bad;
204 }
205 }
206
207
208 ATH_LOCK(sc);

--- 99 unchanged lines hidden ---
201 if (outdata == NULL) {
202 error = ENOMEM;
203 goto bad;
204 }
205 }
206
207
208 ATH_LOCK(sc);

--- 99 unchanged lines hidden ---