Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream #6

Merged
merged 56 commits into from
Apr 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
4fa9e48
selinux: vsock: Set SID for socket returned by accept()
Mar 29, 2021
ee2235a
tcp: relookup sock for RST+ACK packets handled by obsolete req sock
Mar 29, 2021
6f10fc8
ipv6: weaken the v4mapped source check
kuba-moo Mar 17, 2021
69dbcdc
ext4: fix bh ref count on error paths
zhangzl2013 Mar 2, 2021
397b417
rpc: fix NULL dereference on kmalloc failure
Mar 2, 2021
647c3f2
ASoC: rt5640: Fix dac- and adc- vol-tlv values being off by a factor …
jwrdegoede Feb 26, 2021
48b5256
ASoC: rt5651: Fix dac- and adc- vol-tlv values being off by a factor …
jwrdegoede Feb 26, 2021
45424cb
ASoC: sgtl5000: set DAP_AVC_CTRL register to correct default value on…
benjaminjrood Feb 19, 2021
0d9fac3
ASoC: es8316: Simplify adc_pga_gain_tlv table
jwrdegoede Feb 28, 2021
621b4b5
ASoC: cs42l42: Fix Bitclock polarity inversion
Mar 5, 2021
b116269
ASoC: cs42l42: Fix channel width support
Mar 5, 2021
23d4fd0
ASoC: cs42l42: Fix mixer volume control
Mar 5, 2021
377906e
ASoC: cs42l42: Always wait at least 3ms after reset
Mar 5, 2021
ea2da9e
vhost: Fix vhost_vq_reset()
vivier Mar 12, 2021
36116c3
scsi: st: Fix a use after free in st_open()
Yunlongs Mar 11, 2021
be38b68
scsi: qla2xxx: Fix broken #endif placement
Mar 14, 2021
76d2c3f
staging: comedi: cb_pcidas: fix request_irq() warn
lzto Mar 15, 2021
f9f513b
staging: comedi: cb_pcidas64: fix request_irq() warn
lzto Mar 15, 2021
cb58ced
ASoC: rt5659: Update MCLK rate in set_sysclk()
pujars Mar 15, 2021
0b6f0f7
locking/ww_mutex: Simplify use_ww_ctx & ww_ctx handling
Waiman-Long Mar 16, 2021
2642235
ext4: do not iput inode under running transaction in ext4_rename()
zhangyi089 Mar 3, 2021
4664376
brcmfmac: clear EAP/association status bits on linkdown events
Dec 24, 2020
33a7f28
ath10k: hold RCU lock when calling ieee80211_find_sta_by_ifaddr()
shuahkh Feb 10, 2021
cd9de8d
net: ethernet: aquantia: Handle error cleanup of start on open
Feb 11, 2021
17777b5
appletalk: Fix skb allocation size in loopback case
dougg3 Feb 12, 2021
8555c34
net: wan/lmc: unregister device when no matching device is found
lzto Feb 15, 2021
45ac34e
bpf: Remove MTU check in __bpf_skb_max_len
netoptimizer Feb 9, 2021
86fde9a
ALSA: usb-audio: Apply sample rate quirk to Logitech Connect
ikjn-cros Mar 24, 2021
824ad58
ALSA: hda/realtek: fix a determine_headset_type issue for a Dell AIO
jason77-wang Mar 20, 2021
b604275
ALSA: hda/realtek: call alc_update_headset_mode() in hp_automute_hook
jason77-wang Mar 20, 2021
f96caee
PM: runtime: Fix race getting/putting suppliers at probe
ahunter6 Mar 26, 2021
fa35309
PM: runtime: Fix ordering in pm_runtime_get_suppliers()
ahunter6 Mar 26, 2021
0fba86f
tracing: Fix stack trace event size
rostedt Apr 1, 2021
8702457
mm: fix race by making init_zero_pfn() early_initcall
lipnitsk Mar 30, 2021
0029f67
drm/amdgpu: fix offset calculation in amdgpu_vm_bo_clear_mappings()
Mar 26, 2021
10d459d
drm/amdgpu: check alignment on CPU page for bo map
xry111 Mar 30, 2021
27f84dc
reiserfs: update reiserfs_xattrs_initialized() condition
Mar 21, 2021
97e34f7
pinctrl: rockchip: fix restore error in resume
Feb 23, 2021
957ca77
extcon: Add stubs for extcon_register_notifier_all() functions
krzk Dec 31, 2020
b04ba3b
extcon: Fix error handling in extcon_dev_register
dinghaoliu Jan 19, 2021
046487a
firewire: nosy: Fix a use-after-free bug in nosy_ioctl()
ZheyuMa Apr 3, 2021
1e9a358
usbip: vhci_hcd fix shift out-of-bounds in vhci_hub_control()
shuahkh Mar 24, 2021
161740d
USB: quirks: ignore remote wake-up on Fibocom L850-GL LTE modem
vpalatin Mar 19, 2021
248021c
usb: musb: Fix suspend with devices connected for a64
tmlind Mar 24, 2021
8ec2c50
usb: xhci-mtk: fix broken streams issue on 0.96 xHCI
Mar 23, 2021
8e08696
cdc-acm: fix BREAK rx code path adding necessary calls
oneukum Mar 11, 2021
0f4a164
USB: cdc-acm: untangle a circular dependency between callback and sof…
oneukum Mar 11, 2021
1cddfcd
USB: cdc-acm: downgrade message to debug
oneukum Mar 11, 2021
4507f4c
USB: cdc-acm: fix double free on probe failure
jhovold Mar 22, 2021
e6da2a4
USB: cdc-acm: fix use-after-free after probe failure
jhovold Mar 22, 2021
6fa6a78
usb: gadget: udc: amd5536udc_pci fix null-ptr-dereference
lzto Mar 17, 2021
e7df3f7
usb: dwc2: Fix HPRT0.PrtSusp bit setting for HiKey 960 board.
Mar 26, 2021
ac2b1f8
staging: rtl8192e: Fix incorrect source in memcpy()
atul-g Mar 23, 2021
bfbaa5c
staging: rtl8192e: Change state information from u16 to u8
atul-g Mar 23, 2021
4af9b6b
drivers: video: fbcon: fix NULL dereference in fbcon_cursor()
Mar 12, 2021
d9240ad
Linux 4.19.185
gregkh Apr 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
VERSION = 4
PATCHLEVEL = 19
SUBLEVEL = 184
SUBLEVEL = 185
EXTRAVERSION =
NAME = "People's Front"

Expand Down
10 changes: 8 additions & 2 deletions drivers/base/power/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -1572,8 +1572,8 @@ void pm_runtime_get_suppliers(struct device *dev)
list_for_each_entry_rcu(link, &dev->links.suppliers, c_node)
if (link->flags & DL_FLAG_PM_RUNTIME) {
link->supplier_preactivated = true;
refcount_inc(&link->rpm_active);
pm_runtime_get_sync(link->supplier);
refcount_inc(&link->rpm_active);
}

device_links_read_unlock(idx);
Expand All @@ -1586,14 +1586,20 @@ void pm_runtime_get_suppliers(struct device *dev)
void pm_runtime_put_suppliers(struct device *dev)
{
struct device_link *link;
unsigned long flags;
bool put;
int idx;

idx = device_links_read_lock();

list_for_each_entry_rcu(link, &dev->links.suppliers, c_node)
if (link->supplier_preactivated) {
link->supplier_preactivated = false;
if (refcount_dec_not_one(&link->rpm_active))
spin_lock_irqsave(&dev->power.lock, flags);
put = pm_runtime_status_suspended(dev) &&
refcount_dec_not_one(&link->rpm_active);
spin_unlock_irqrestore(&dev->power.lock, flags);
if (put)
pm_runtime_put(link->supplier);
}

Expand Down
1 change: 1 addition & 0 deletions drivers/extcon/extcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,7 @@ int extcon_dev_register(struct extcon_dev *edev)
sizeof(*edev->nh), GFP_KERNEL);
if (!edev->nh) {
ret = -ENOMEM;
device_unregister(&edev->dev);
goto err_dev;
}

Expand Down
9 changes: 7 additions & 2 deletions drivers/firewire/nosy.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ nosy_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
struct client *client = file->private_data;
spinlock_t *client_list_lock = &client->lynx->client_list_lock;
struct nosy_stats stats;
int ret;

switch (cmd) {
case NOSY_IOC_GET_STATS:
Expand All @@ -373,11 +374,15 @@ nosy_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
return 0;

case NOSY_IOC_START:
ret = -EBUSY;
spin_lock_irq(client_list_lock);
list_add_tail(&client->link, &client->lynx->client_list);
if (list_empty(&client->link)) {
list_add_tail(&client->link, &client->lynx->client_list);
ret = 0;
}
spin_unlock_irq(client_list_lock);

return 0;
return ret;

case NOSY_IOC_STOP:
spin_lock_irq(client_list_lock);
Expand Down
10 changes: 5 additions & 5 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2076,8 +2076,8 @@ int amdgpu_vm_bo_map(struct amdgpu_device *adev,
uint64_t eaddr;

/* validate the parameters */
if (saddr & AMDGPU_GPU_PAGE_MASK || offset & AMDGPU_GPU_PAGE_MASK ||
size == 0 || size & AMDGPU_GPU_PAGE_MASK)
if (saddr & ~PAGE_MASK || offset & ~PAGE_MASK ||
size == 0 || size & ~PAGE_MASK)
return -EINVAL;

/* make sure object fit at this offset */
Expand Down Expand Up @@ -2141,8 +2141,8 @@ int amdgpu_vm_bo_replace_map(struct amdgpu_device *adev,
int r;

/* validate the parameters */
if (saddr & AMDGPU_GPU_PAGE_MASK || offset & AMDGPU_GPU_PAGE_MASK ||
size == 0 || size & AMDGPU_GPU_PAGE_MASK)
if (saddr & ~PAGE_MASK || offset & ~PAGE_MASK ||
size == 0 || size & ~PAGE_MASK)
return -EINVAL;

/* make sure object fit at this offset */
Expand Down Expand Up @@ -2286,7 +2286,7 @@ int amdgpu_vm_bo_clear_mappings(struct amdgpu_device *adev,
after->start = eaddr + 1;
after->last = tmp->last;
after->offset = tmp->offset;
after->offset += after->start - tmp->start;
after->offset += (after->start - tmp->start) << PAGE_SHIFT;
after->flags = tmp->flags;
after->bo_va = tmp->bo_va;
list_add(&after->list, &tmp->bo_va->invalids);
Expand Down
4 changes: 3 additions & 1 deletion drivers/net/ethernet/aquantia/atlantic/aq_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ static int aq_ndev_open(struct net_device *ndev)
if (err < 0)
goto err_exit;
err = aq_nic_start(aq_nic);
if (err < 0)
if (err < 0) {
aq_nic_stop(aq_nic);
goto err_exit;
}

err_exit:
if (err < 0)
Expand Down
2 changes: 2 additions & 0 deletions drivers/net/wan/lmc/lmc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,8 @@ static int lmc_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
break;
default:
printk(KERN_WARNING "%s: LMC UNKNOWN CARD!\n", dev->name);
unregister_hdlc_device(dev);
return -EIO;
break;
}

Expand Down
7 changes: 5 additions & 2 deletions drivers/net/wireless/ath/ath10k/wmi-tlv.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,13 @@ static void ath10k_wmi_event_tdls_peer(struct ath10k *ar, struct sk_buff *skb)
case WMI_TDLS_TEARDOWN_REASON_TX:
case WMI_TDLS_TEARDOWN_REASON_RSSI:
case WMI_TDLS_TEARDOWN_REASON_PTR_TIMEOUT:
rcu_read_lock();
station = ieee80211_find_sta_by_ifaddr(ar->hw,
ev->peer_macaddr.addr,
NULL);
if (!station) {
ath10k_warn(ar, "did not find station from tdls peer event");
kfree(tb);
return;
goto exit;
}
arvif = ath10k_get_arvif(ar, __le32_to_cpu(ev->vdev_id));
ieee80211_tdls_oper_request(
Expand All @@ -466,6 +466,9 @@ static void ath10k_wmi_event_tdls_peer(struct ath10k *ar, struct sk_buff *skb)
);
break;
}

exit:
rcu_read_unlock();
kfree(tb);
}

Expand Down
7 changes: 5 additions & 2 deletions drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -5282,7 +5282,8 @@ static bool brcmf_is_linkup(struct brcmf_cfg80211_vif *vif,
return false;
}

static bool brcmf_is_linkdown(const struct brcmf_event_msg *e)
static bool brcmf_is_linkdown(struct brcmf_cfg80211_vif *vif,
const struct brcmf_event_msg *e)
{
u32 event = e->event_code;
u16 flags = e->flags;
Expand All @@ -5291,6 +5292,8 @@ static bool brcmf_is_linkdown(const struct brcmf_event_msg *e)
(event == BRCMF_E_DISASSOC_IND) ||
((event == BRCMF_E_LINK) && (!(flags & BRCMF_EVENT_MSG_LINK)))) {
brcmf_dbg(CONN, "Processing link down\n");
clear_bit(BRCMF_VIF_STATUS_EAP_SUCCESS, &vif->sme_state);
clear_bit(BRCMF_VIF_STATUS_ASSOC_SUCCESS, &vif->sme_state);
return true;
}
return false;
Expand Down Expand Up @@ -5581,7 +5584,7 @@ brcmf_notify_connect_status(struct brcmf_if *ifp,
} else
brcmf_bss_connect_done(cfg, ndev, e, true);
brcmf_net_setcarrier(ifp, true);
} else if (brcmf_is_linkdown(e)) {
} else if (brcmf_is_linkdown(ifp->vif, e)) {
brcmf_dbg(CONN, "Linkdown\n");
if (!brcmf_is_ibssmode(ifp->vif)) {
brcmf_bss_connect_done(cfg, ndev, e, false);
Expand Down
13 changes: 8 additions & 5 deletions drivers/pinctrl/pinctrl-rockchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -3353,12 +3353,15 @@ static int __maybe_unused rockchip_pinctrl_suspend(struct device *dev)
static int __maybe_unused rockchip_pinctrl_resume(struct device *dev)
{
struct rockchip_pinctrl *info = dev_get_drvdata(dev);
int ret = regmap_write(info->regmap_base, RK3288_GRF_GPIO6C_IOMUX,
rk3288_grf_gpio6c_iomux |
GPIO6C6_SEL_WRITE_ENABLE);
int ret;

if (ret)
return ret;
if (info->ctrl->type == RK3288) {
ret = regmap_write(info->regmap_base, RK3288_GRF_GPIO6C_IOMUX,
rk3288_grf_gpio6c_iomux |
GPIO6C6_SEL_WRITE_ENABLE);
if (ret)
return ret;
}

return pinctrl_force_default(info->pctl_dev);
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/qla2xxx/qla_target.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@
(min(1270, ((ql) > 0) ? (QLA_TGT_DATASEGS_PER_CMD_24XX + \
QLA_TGT_DATASEGS_PER_CONT_24XX*((ql) - 1)) : 0))
#endif
#endif

#define GET_TARGET_ID(ha, iocb) ((HAS_EXTENDED_IDS(ha)) \
? le16_to_cpu((iocb)->u.isp2x.target.extended) \
Expand Down Expand Up @@ -257,6 +256,7 @@ struct ctio_to_2xxx {
#ifndef CTIO_RET_TYPE
#define CTIO_RET_TYPE 0x17 /* CTIO return entry */
#define ATIO_TYPE7 0x06 /* Accept target I/O entry for 24xx */
#endif

struct fcp_hdr {
uint8_t r_ctl;
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -1265,8 +1265,8 @@ static int st_open(struct inode *inode, struct file *filp)
spin_lock(&st_use_lock);
if (STp->in_use) {
spin_unlock(&st_use_lock);
scsi_tape_put(STp);
DEBC_printk(STp, "Device already in use.\n");
scsi_tape_put(STp);
return (-EBUSY);
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/cb_pcidas.c
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ static int cb_pcidas_auto_attach(struct comedi_device *dev,
devpriv->amcc + AMCC_OP_REG_INTCSR);

ret = request_irq(pcidev->irq, cb_pcidas_interrupt, IRQF_SHARED,
dev->board_name, dev);
"cb_pcidas", dev);
if (ret) {
dev_dbg(dev->class_dev, "unable to allocate irq %d\n",
pcidev->irq);
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/cb_pcidas64.c
Original file line number Diff line number Diff line change
Expand Up @@ -4021,7 +4021,7 @@ static int auto_attach(struct comedi_device *dev,
init_stc_registers(dev);

retval = request_irq(pcidev->irq, handle_interrupt, IRQF_SHARED,
dev->board_name, dev);
"cb_pcidas64", dev);
if (retval) {
dev_dbg(dev->class_dev, "unable to allocate irq %u\n",
pcidev->irq);
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/rtllib.h
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ struct rtllib_network {
bool bWithAironetIE;
bool bCkipSupported;
bool bCcxRmEnable;
u16 CcxRmState[2];
u8 CcxRmState[2];
bool bMBssidValid;
u8 MBssidMask;
u8 MBssid[ETH_ALEN];
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/rtllib_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1978,7 +1978,7 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee,
info_element->data[2] == 0x96 &&
info_element->data[3] == 0x01) {
if (info_element->len == 6) {
memcpy(network->CcxRmState, &info_element[4], 2);
memcpy(network->CcxRmState, &info_element->data[4], 2);
if (network->CcxRmState[0] != 0)
network->bCcxRmEnable = true;
else
Expand Down
Loading