Commit b94d525e58dc9638dd3f98094cb468bcfb262039
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull networking fixes from David Miller: "Here is a quick pull request primarily meant to address the deconfig fallout from changing SCSI_NETLINK from being used via 'select' to being used via 'depends'. I applied a set of 5 patches written by Michal Marek, and then I carefully audited all of the remaining config files, basically: 1) I scanned every arch config file, and if it mentioned CONFIG_INET or CONFIG_UNIX, I made sure it had CONFIG_NET=y 2) After that, I scanned every arch config file, and if it did not have CONFIG_NET=y I made sure it did not reference any networking config options. Finally, we have some late breaking wireless fixes in here from John Linville and co" [ And there's a sparc bpf fix snuck in too ] * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: sparc: bpf_jit: fix loads from negative offsets parisc: Update defconfigs which were missing CONFIG_NET. powerpc: Update defconfigs which were missing CONFIG_NET. s390: Update defconfigs which were missing CONFIG_NET. mips: Update some more defconfigs which were missing CONFIG_NET. sparc: Set CONFIG_NET=y in defconfigs sh: Set CONFIG_NET=y in defconfigs powerpc: Set CONFIG_NET=y in defconfigs parisc: Set CONFIG_NET=y in defconfigs mips: Set CONFIG_NET=y in defconfigs brcmfmac: Fix off by one bug in brcmf_count_20mhz_channels() ath9k: Fix NULL pointer dereference on early irq net: rfkill: gpio: Fix clock status NFC: st21nfca: Fix potential depmod dependency cycle NFC: st21nfcb: Fix depmod dependency cycle NFC: microread: Potential overflows in microread_target_discovered()
Showing 35 changed files Side-by-side Diff
- arch/mips/configs/gpr_defconfig
- arch/mips/configs/ip27_defconfig
- arch/mips/configs/jazz_defconfig
- arch/mips/configs/loongson3_defconfig
- arch/mips/configs/malta_defconfig
- arch/mips/configs/malta_kvm_defconfig
- arch/mips/configs/malta_kvm_guest_defconfig
- arch/mips/configs/mtx1_defconfig
- arch/mips/configs/nlm_xlp_defconfig
- arch/mips/configs/nlm_xlr_defconfig
- arch/mips/configs/rm200_defconfig
- arch/parisc/configs/a500_defconfig
- arch/parisc/configs/c8000_defconfig
- arch/powerpc/configs/c2k_defconfig
- arch/powerpc/configs/pmac32_defconfig
- arch/powerpc/configs/ppc64_defconfig
- arch/powerpc/configs/ppc64e_defconfig
- arch/powerpc/configs/pseries_defconfig
- arch/powerpc/configs/pseries_le_defconfig
- arch/s390/configs/default_defconfig
- arch/s390/configs/gcov_defconfig
- arch/s390/configs/performance_defconfig
- arch/s390/configs/zfcpdump_defconfig
- arch/s390/defconfig
- arch/sh/configs/sdk7780_defconfig
- arch/sh/configs/sh2007_defconfig
- arch/sparc/configs/sparc64_defconfig
- arch/sparc/net/bpf_jit_asm.S
- arch/sparc/net/bpf_jit_comp.c
- drivers/net/wireless/ath/ath9k/main.c
- drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
- drivers/nfc/microread/microread.c
- drivers/nfc/st21nfca/Makefile
- drivers/nfc/st21nfcb/Makefile
- net/rfkill/rfkill-gpio.c
arch/mips/configs/gpr_defconfig
arch/mips/configs/ip27_defconfig
arch/mips/configs/jazz_defconfig
arch/mips/configs/loongson3_defconfig
arch/mips/configs/malta_defconfig
arch/mips/configs/malta_kvm_defconfig
arch/mips/configs/malta_kvm_guest_defconfig
arch/mips/configs/mtx1_defconfig
arch/mips/configs/nlm_xlp_defconfig
arch/mips/configs/nlm_xlr_defconfig
arch/mips/configs/rm200_defconfig
arch/parisc/configs/a500_defconfig
arch/parisc/configs/c8000_defconfig
arch/powerpc/configs/c2k_defconfig
arch/powerpc/configs/pmac32_defconfig
arch/powerpc/configs/ppc64_defconfig
arch/powerpc/configs/ppc64e_defconfig
arch/powerpc/configs/pseries_defconfig
arch/powerpc/configs/pseries_le_defconfig
arch/s390/configs/default_defconfig
arch/s390/configs/gcov_defconfig
arch/s390/configs/performance_defconfig
arch/s390/configs/zfcpdump_defconfig
arch/s390/defconfig
arch/sh/configs/sdk7780_defconfig
arch/sh/configs/sh2007_defconfig
arch/sparc/configs/sparc64_defconfig
arch/sparc/net/bpf_jit_asm.S
... | ... | @@ -6,10 +6,12 @@ |
6 | 6 | #define SAVE_SZ 176 |
7 | 7 | #define SCRATCH_OFF STACK_BIAS + 128 |
8 | 8 | #define BE_PTR(label) be,pn %xcc, label |
9 | +#define SIGN_EXTEND(reg) sra reg, 0, reg | |
9 | 10 | #else |
10 | 11 | #define SAVE_SZ 96 |
11 | 12 | #define SCRATCH_OFF 72 |
12 | 13 | #define BE_PTR(label) be label |
14 | +#define SIGN_EXTEND(reg) | |
13 | 15 | #endif |
14 | 16 | |
15 | 17 | #define SKF_MAX_NEG_OFF (-0x200000) /* SKF_LL_OFF from filter.h */ |
... | ... | @@ -135,6 +137,7 @@ |
135 | 137 | save %sp, -SAVE_SZ, %sp; \ |
136 | 138 | mov %i0, %o0; \ |
137 | 139 | mov r_OFF, %o1; \ |
140 | + SIGN_EXTEND(%o1); \ | |
138 | 141 | call bpf_internal_load_pointer_neg_helper; \ |
139 | 142 | mov (LEN), %o2; \ |
140 | 143 | mov %o0, r_TMP; \ |
arch/sparc/net/bpf_jit_comp.c
drivers/net/wireless/ath/ath9k/main.c
... | ... | @@ -513,7 +513,7 @@ |
513 | 513 | * touch anything. Note this can happen early |
514 | 514 | * on if the IRQ is shared. |
515 | 515 | */ |
516 | - if (test_bit(ATH_OP_INVALID, &common->op_flags)) | |
516 | + if (!ah || test_bit(ATH_OP_INVALID, &common->op_flags)) | |
517 | 517 | return IRQ_NONE; |
518 | 518 | |
519 | 519 | /* shared irq, not for us */ |
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
drivers/nfc/microread/microread.c
... | ... | @@ -501,9 +501,13 @@ |
501 | 501 | targets->sens_res = |
502 | 502 | be16_to_cpu(*(u16 *)&skb->data[MICROREAD_EMCF_A_ATQA]); |
503 | 503 | targets->sel_res = skb->data[MICROREAD_EMCF_A_SAK]; |
504 | - memcpy(targets->nfcid1, &skb->data[MICROREAD_EMCF_A_UID], | |
505 | - skb->data[MICROREAD_EMCF_A_LEN]); | |
506 | 504 | targets->nfcid1_len = skb->data[MICROREAD_EMCF_A_LEN]; |
505 | + if (targets->nfcid1_len > sizeof(targets->nfcid1)) { | |
506 | + r = -EINVAL; | |
507 | + goto exit_free; | |
508 | + } | |
509 | + memcpy(targets->nfcid1, &skb->data[MICROREAD_EMCF_A_UID], | |
510 | + targets->nfcid1_len); | |
507 | 511 | break; |
508 | 512 | case MICROREAD_GATE_ID_MREAD_ISO_A_3: |
509 | 513 | targets->supported_protocols = |
510 | 514 | |
... | ... | @@ -511,9 +515,13 @@ |
511 | 515 | targets->sens_res = |
512 | 516 | be16_to_cpu(*(u16 *)&skb->data[MICROREAD_EMCF_A3_ATQA]); |
513 | 517 | targets->sel_res = skb->data[MICROREAD_EMCF_A3_SAK]; |
514 | - memcpy(targets->nfcid1, &skb->data[MICROREAD_EMCF_A3_UID], | |
515 | - skb->data[MICROREAD_EMCF_A3_LEN]); | |
516 | 518 | targets->nfcid1_len = skb->data[MICROREAD_EMCF_A3_LEN]; |
519 | + if (targets->nfcid1_len > sizeof(targets->nfcid1)) { | |
520 | + r = -EINVAL; | |
521 | + goto exit_free; | |
522 | + } | |
523 | + memcpy(targets->nfcid1, &skb->data[MICROREAD_EMCF_A3_UID], | |
524 | + targets->nfcid1_len); | |
517 | 525 | break; |
518 | 526 | case MICROREAD_GATE_ID_MREAD_ISO_B: |
519 | 527 | targets->supported_protocols = NFC_PROTO_ISO14443_B_MASK; |
drivers/nfc/st21nfca/Makefile
... | ... | @@ -2,8 +2,9 @@ |
2 | 2 | # Makefile for ST21NFCA HCI based NFC driver |
3 | 3 | # |
4 | 4 | |
5 | -st21nfca_i2c-objs = i2c.o | |
5 | +st21nfca_hci-objs = st21nfca.o st21nfca_dep.o | |
6 | +obj-$(CONFIG_NFC_ST21NFCA) += st21nfca_hci.o | |
6 | 7 | |
7 | -obj-$(CONFIG_NFC_ST21NFCA) += st21nfca.o st21nfca_dep.o | |
8 | +st21nfca_i2c-objs = i2c.o | |
8 | 9 | obj-$(CONFIG_NFC_ST21NFCA_I2C) += st21nfca_i2c.o |
drivers/nfc/st21nfcb/Makefile
... | ... | @@ -2,8 +2,9 @@ |
2 | 2 | # Makefile for ST21NFCB NCI based NFC driver |
3 | 3 | # |
4 | 4 | |
5 | -st21nfcb_i2c-objs = i2c.o | |
5 | +st21nfcb_nci-objs = ndlc.o st21nfcb.o | |
6 | +obj-$(CONFIG_NFC_ST21NFCB) += st21nfcb_nci.o | |
6 | 7 | |
7 | -obj-$(CONFIG_NFC_ST21NFCB) += st21nfcb.o ndlc.o | |
8 | +st21nfcb_i2c-objs = i2c.o | |
8 | 9 | obj-$(CONFIG_NFC_ST21NFCB_I2C) += st21nfcb_i2c.o |