Deleted Added
full compact
if_bce.c (302408) if_bce.c (315221)
1/*-
2 * Copyright (c) 2006-2014 QLogic Corporation
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

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

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

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

20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
24 * THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: stable/11/sys/dev/bce/if_bce.c 298955 2016-05-03 03:41:25Z pfg $");
28__FBSDID("$FreeBSD: stable/11/sys/dev/bce/if_bce.c 315221 2017-03-14 02:06:03Z pfg $");
29
30/*
31 * The following controllers are supported by this driver:
32 * BCM5706C A2, A3
33 * BCM5706S A2, A3
34 * BCM5708C B1, B2
35 * BCM5708S B1, B2
36 * BCM5709C A1, C0

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

2795 end, 4))) {
2796 goto bce_nvram_write_exit;
2797 }
2798 }
2799 }
2800
2801 if (align_start || align_end) {
2802 buf = malloc(len32, M_DEVBUF, M_NOWAIT);
29
30/*
31 * The following controllers are supported by this driver:
32 * BCM5706C A2, A3
33 * BCM5706S A2, A3
34 * BCM5708C B1, B2
35 * BCM5708S B1, B2
36 * BCM5709C A1, C0

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

2795 end, 4))) {
2796 goto bce_nvram_write_exit;
2797 }
2798 }
2799 }
2800
2801 if (align_start || align_end) {
2802 buf = malloc(len32, M_DEVBUF, M_NOWAIT);
2803 if (buf == 0) {
2803 if (buf == NULL) {
2804 rc = ENOMEM;
2805 goto bce_nvram_write_exit;
2806 }
2807
2808 if (align_start) {
2809 memcpy(buf, start, 4);
2810 }
2811

--- 8800 unchanged lines hidden ---
2804 rc = ENOMEM;
2805 goto bce_nvram_write_exit;
2806 }
2807
2808 if (align_start) {
2809 memcpy(buf, start, 4);
2810 }
2811

--- 8800 unchanged lines hidden ---