Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
8732c2d
counter: stm32-timer-cnt: fix ceiling miss-alignment with reload regi…
Mar 3, 2021
da8f3cc
ALSA: aloop: Fix initialization of controls
Apr 7, 2021
c99780f
ALSA: hda/realtek: Fix speaker amp setup on Acer Aspire E1
tiwai Apr 7, 2021
12289d9
ASoC: intel: atom: Stop advertising non working S24LE support
jwrdegoede Mar 24, 2021
c89903c
nfc: fix refcount leak in llcp_sock_bind()
nixiaoming Mar 25, 2021
41bc58b
nfc: fix refcount leak in llcp_sock_connect()
nixiaoming Mar 25, 2021
404daa4
nfc: fix memory leak in llcp_sock_connect()
nixiaoming Mar 25, 2021
aa0cff2
nfc: Avoid endless loops caused by repeated llcp_sock_connect()
nixiaoming Mar 25, 2021
a09acbb
xen/evtchn: Change irq_info lock to raw_spinlock_t
luca-fancellu Apr 6, 2021
6649b5e
net: ipv6: check for validity before dereferencing cfg->fc_nlinfo.nlh
musamaanjum Apr 8, 2021
0e8f850
net: dsa: lantiq_gswip: Let GSWIP automatically set the xMII clock
xdarklight Mar 24, 2021
c2b3cf2
drm/i915: Fix invalid access to ACPI _DSM objects
tiwai Apr 2, 2021
7a92396
gcov: re-fix clang-11+ support
nickdesaulniers Apr 9, 2021
75fd54e
ia64: fix user_stack_pointer() for ptrace()
Apr 9, 2021
52999a6
nds32: flush_dcache_page: use page_mapping_file to avoid races with s…
rppt Apr 9, 2021
f495bed
ocfs2: fix deadlock between setattr and dio_end_io_write
Wengang-oracle Apr 9, 2021
507c200
fs: direct-io: fix missing sdio->boundary
Apr 9, 2021
957d030
parisc: parisc-agp requires SBA IOMMU driver
hdeller Apr 6, 2021
9dfd74a
parisc: avoid a warning on u8 cast for cmpxchg on u8 pointers
Apr 6, 2021
79407ae
ARM: dts: turris-omnia: configure LED[2]/INTn pin as interrupt pin
elkablo Feb 20, 2021
9de1caa
batman-adv: initialize "struct batadv_tvlv_tt_vlan_data"->reserved field
Apr 5, 2021
1aecc57
ice: Increase control queue timeout
fpricoco Feb 26, 2021
0df579b
ice: Fix for dereference of NULL pointer
jacek-bulatek Feb 26, 2021
ef2ccf8
ice: Cleanup fltr list in case of allocation issues
rrmalz Feb 26, 2021
4a2933c
net: hso: fix null-ptr-deref during tty device unregistration
anirudhrb Apr 7, 2021
0242251
ethernet/netronome/nfp: Fix a use after free in nfp_bpf_ctrl_msg_rx
Yunlongs Mar 29, 2021
158a9b8
bpf, sockmap: Fix sk->prot unhash op reset
jrfastab Apr 1, 2021
599200a
net: ensure mac header is set in virtio_net_hdr_to_skb()
edumazet Mar 30, 2021
b31d91e
i40e: Fix sparse warning: missing error code 'err'
kubalewski Mar 26, 2021
2f5edf1
i40e: Fix sparse error: 'vsi->netdev' could be null
kubalewski Mar 26, 2021
5a4f39f
net: sched: sch_teql: fix null-pointer dereference
Snorch Apr 8, 2021
a9311be
mac80211: fix TXQ AC confusion
jmberg-intel Mar 23, 2021
b5e7653
net: hsr: Reset MAC header for Tx path
shifty91 Apr 6, 2021
fd8a95d
net-ipv6: bugfix - raw & sctp - switch to ipv6_can_nonlocal_bind()
zenczykowski Apr 5, 2021
b02bded
net: let skb_orphan_partial wake-up waiters.
Mar 30, 2021
6a43536
usbip: add sysfs_lock to synchronize sysfs code paths
shuahkh Mar 30, 2021
06fedcc
usbip: stub-dev synchronize sysfs code paths
shuahkh Mar 30, 2021
3716801
usbip: vudc synchronize sysfs code paths
shuahkh Mar 30, 2021
cafced0
usbip: synchronize event handler with sysfs code paths
shuahkh Mar 30, 2021
0534f1f
i2c: turn recovery error on init to debug
Mar 15, 2021
910e785
virtio_net: Add XDP meta data support
higebu Feb 25, 2020
249908e
net: dsa: lantiq_gswip: Don't use PHY auto polling
xdarklight Apr 11, 2021
7977d5f
net: dsa: lantiq_gswip: Configure all remaining GSWIP_MII_CFG bits
xdarklight Apr 11, 2021
d78e99d
xfrm: interface: fix ipv4 pmtu check to honor ip header df
ebirger Feb 20, 2021
3465939
regulator: bd9571mwv: Fix AVS and DVFS voltage range
geertu Mar 12, 2021
a128e07
net: xfrm: Localize sequence counter per network namespace
a-darwish Mar 16, 2021
540ddee
esp: delete NETIF_F_SCTP_CRC bit from features for esp offload
lxin Mar 19, 2021
99b4e9a
ASoC: SOF: Intel: hda: remove unnecessary parentheses
PayalKshirsagar Apr 9, 2020
b32969a
ASoC: SOF: Intel: HDA: fix core status verification
lyakh Mar 22, 2021
bac7e76
ASoC: wm8960: Fix wrong bclk and lrclk with pll enabled for some chips
TE-N-ShengjiuWang Mar 19, 2021
f819977
xfrm: Fix NULL pointer dereference on policy lookup
klassert Mar 23, 2021
c0aacaa
i40e: Added Asym_Pause to supported link modes
mpalczew96 Jan 4, 2021
fec47d4
i40e: Fix kernel oops when i40e driver removes VF's
eryk-roch Feb 18, 2021
613f355
hostfs: Use kasprintf() instead of fixed buffer formatting
andy-shev Mar 20, 2020
e472f68
hostfs: fix memory handling in follow_link()
Mar 25, 2021
accb270
amd-xgbe: Update DMA coherency values
Mar 25, 2021
840a181
sch_red: fix off-by-one checks in red_check_params()
edumazet Mar 25, 2021
ca44354
arm64: dts: imx8mm/q: Fix pad control of SD1_DATA0
Mar 24, 2021
516c436
can: bcm/raw: fix msg_namelen values depending on CAN_REQUIRED_SIZE
hartkopp Mar 25, 2021
e9bdd3e
gianfar: Handle error code at MAC address change
claudiu-m Mar 29, 2021
200c845
cxgb4: avoid collecting SGE_QBASE regs during traffic
chelsiocudbg Mar 27, 2021
c991ca6
net:tipc: Fix a double free in tipc_sk_mcast_rcv
Yunlongs Mar 28, 2021
c66b672
ARM: dts: imx6: pbab01: Set vmmc supply for both SD interfaces
sriedmueller Mar 29, 2021
bbbee59
net/ncsi: Avoid channel_monitor hrtimer deadlock
mdmillerii Mar 29, 2021
6aa7d26
nfp: flower: ignore duplicate merge hints from FW
Mar 30, 2021
db4600a
net: phy: broadcom: Only advertise EEE for supported modes
ffainelli Mar 30, 2021
1f3010f
ASoC: sunxi: sun4i-codec: fill ASoC card owner
Mar 31, 2021
029416e
net/mlx5e: Fix ethtool indication of connector type
ayalevin Mar 24, 2021
73f88cc
net/mlx5: Don't request more than supported EQs
Dec 5, 2019
c178e8a
net/rds: Fix a use after free in rds_message_map_pages
Yunlongs Mar 31, 2021
7c0d237
soc/fsl: qbman: fix conflicting alignment attributes
arndb Mar 23, 2021
e22ce1d
i40e: Fix display statistics for veb_tc
eryk-roch Mar 2, 2021
de8c596
drm/msm: Set drvdata to NULL when msm_drm_init() fails
bebarino Mar 25, 2021
537a244
net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...);
normanmaurer Apr 1, 2021
c5efc9d
scsi: ufs: Fix irq return code
Nov 15, 2019
a8d2d45
scsi: ufs: Avoid busy-waiting by eliminating tag conflicts
bvanassche Dec 9, 2019
f6abec1
scsi: ufs: Use blk_{get,put}_request() to allocate and free TMFs
bvanassche Dec 9, 2019
81fddc7
scsi: ufs: core: Fix task management request completion timeout
Apr 1, 2021
c61fe6b
scsi: ufs: core: Fix wrong Task Tag used in task management request U…
Apr 1, 2021
b371788
net: macb: restore cmp registers on resume path
claudiubeznea Apr 2, 2021
bedda47
clk: fix invalid usage of list cursor in register
semihalf-bartosik-lukasz Apr 1, 2021
1406045
clk: fix invalid usage of list cursor in unregister
semihalf-bartosik-lukasz Apr 1, 2021
c88fa8d
workqueue: Move the position of debug_work_activate() in __queue_work()
Zqiang1211 Feb 18, 2021
d3343a3
s390/cpcmd: fix inline assembly register clobbering
Mar 29, 2021
d0aab59
perf inject: Fix repipe usage
ahunter6 Apr 1, 2021
731abf3
net: openvswitch: conntrack: simplify the return expression of ovs_ct…
Dec 8, 2020
9dd7092
openvswitch: fix send of uninitialized stack memory in ct limit reply
igsilya Apr 4, 2021
9716aac
net: hns3: clear VF down state bit before request link status
Apr 6, 2021
798d94a
net/mlx5: Fix placement of log_max_flow_counter
raed-salem Jan 21, 2021
3ca5345
net/mlx5: Fix PBMC register mapping
ayalevin Apr 4, 2021
44d0331
RDMA/cxgb4: check for ipv6 address properly while destroying listener
bharatpotnuri Mar 31, 2021
f666ad4
RDMA/addr: Be strict with gid size
rleon Apr 5, 2021
35ba6d9
RAS/CEC: Correct ce_add_elem()'s returned values
RocheWilliam Apr 6, 2021
f4c5968
clk: socfpga: fix iomem pointer cast on 64-bit
krzk Mar 14, 2021
3dbafee
dt-bindings: net: ethernet-controller: fix typo in NVMEM
Mar 29, 2021
628ac88
net: sched: bump refcount for new action in ACT replace mode
kkdwvd Mar 29, 2021
ed13df8
cfg80211: remove WARN_ON() in cfg80211_sme_connect
Apr 7, 2021
0a790ad
net: tun: set tun->dev->addr_len during TUNSETLINK processing
PhilPotter Apr 6, 2021
32e2f9a
drivers: net: fix memory leak in atusb_probe
pskrgag Apr 1, 2021
6e7098f
drivers: net: fix memory leak in peak_usb_create_dev
pskrgag Apr 1, 2021
38ea2b3
net: mac802154: Fix general protection fault
pskrgag Mar 4, 2021
8f4c815
net: ieee802154: nl-mac: fix check on panid
Feb 28, 2021
7d32fc7
net: ieee802154: fix nl802154 del llsec key
Feb 21, 2021
4097afd
net: ieee802154: fix nl802154 del llsec dev
Feb 21, 2021
b3a105e
net: ieee802154: fix nl802154 add llsec key
Feb 21, 2021
948a281
net: ieee802154: fix nl802154 del llsec devkey
Feb 21, 2021
e82f8b7
net: ieee802154: forbid monitor for set llsec params
Apr 5, 2021
b4042ec
net: ieee802154: forbid monitor for del llsec seclevel
Apr 5, 2021
7ee5bde
net: ieee802154: stop dump llsec params for monitors
Apr 5, 2021
ea42fd9
Revert "cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb-…
gregkh Apr 12, 2021
8f55ad4
Linux 5.4.112
gregkh Apr 14, 2021
00adf73
Merge tag 'v5.4.112' into 5.4.x+fslc
zandrey Apr 14, 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
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ properties:
description:
Reference to an nvmem node for the MAC address

nvmem-cells-names:
nvmem-cell-names:
const: mac-address

phy-connection-type:
Expand Down
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 = 5
PATCHLEVEL = 4
SUBLEVEL = 111
SUBLEVEL = 112
EXTRAVERSION =
NAME = Kleptomaniac Octopus

Expand Down
1 change: 1 addition & 0 deletions arch/arm/boot/dts/armada-385-turris-omnia.dts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
status = "okay";
compatible = "ethernet-phy-id0141.0DD1", "ethernet-phy-ieee802.3-c22";
reg = <1>;
marvell,reg-init = <3 18 0 0x4985>;

/* irq is connected to &pcawan pin 7 */
};
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@
pinctrl-0 = <&pinctrl_usdhc2>;
cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
wp-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
vmmc-supply = <&vdd_sd1_reg>;
status = "disabled";
};

Expand All @@ -441,5 +442,6 @@
&pinctrl_usdhc3_cdwp>;
cd-gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
wp-gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>;
vmmc-supply = <&vdd_sd0_reg>;
status = "disabled";
};
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
#define MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x0A4 0x30C 0x000 0x0 0x0
#define MX8MM_IOMUXC_SD1_CMD_GPIO2_IO1 0x0A4 0x30C 0x000 0x5 0x0
#define MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x0A8 0x310 0x000 0x0 0x0
#define MX8MM_IOMUXC_SD1_DATA0_GPIO2_IO2 0x0A8 0x31 0x000 0x5 0x0
#define MX8MM_IOMUXC_SD1_DATA0_GPIO2_IO2 0x0A8 0x310 0x000 0x5 0x0
#define MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x0AC 0x314 0x000 0x0 0x0
#define MX8MM_IOMUXC_SD1_DATA1_GPIO2_IO3 0x0AC 0x314 0x000 0x5 0x0
#define MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x0B0 0x318 0x000 0x0 0x0
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/freescale/imx8mq-pinfunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
#define MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0x0A4 0x30C 0x000 0x0 0x0
#define MX8MQ_IOMUXC_SD1_CMD_GPIO2_IO1 0x0A4 0x30C 0x000 0x5 0x0
#define MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x0A8 0x310 0x000 0x0 0x0
#define MX8MQ_IOMUXC_SD1_DATA0_GPIO2_IO2 0x0A8 0x31 0x000 0x5 0x0
#define MX8MQ_IOMUXC_SD1_DATA0_GPIO2_IO2 0x0A8 0x310 0x000 0x5 0x0
#define MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x0AC 0x314 0x000 0x0 0x0
#define MX8MQ_IOMUXC_SD1_DATA1_GPIO2_IO3 0x0AC 0x314 0x000 0x5 0x0
#define MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x0B0 0x318 0x000 0x0 0x0
Expand Down
8 changes: 1 addition & 7 deletions arch/ia64/include/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@

static inline unsigned long user_stack_pointer(struct pt_regs *regs)
{
/* FIXME: should this be bspstore + nr_dirty regs? */
return regs->ar_bspstore;
return regs->r12;
}

static inline int is_syscall_success(struct pt_regs *regs)
Expand All @@ -79,11 +78,6 @@ static inline long regs_return_value(struct pt_regs *regs)
unsigned long __ip = instruction_pointer(regs); \
(__ip & ~3UL) + ((__ip & 3UL) << 2); \
})
/*
* Why not default? Because user_stack_pointer() on ia64 gives register
* stack backing store instead...
*/
#define current_user_stack_pointer() (current_pt_regs()->r12)

/* given a pointer to a task_struct, return the user's pt_regs */
# define task_pt_regs(t) (((struct pt_regs *) ((char *) (t) + IA64_STK_OFFSET)) - 1)
Expand Down
2 changes: 1 addition & 1 deletion arch/nds32/mm/cacheflush.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void flush_dcache_page(struct page *page)
{
struct address_space *mapping;

mapping = page_mapping(page);
mapping = page_mapping_file(page);
if (mapping && !mapping_mapped(mapping))
set_bit(PG_dcache_dirty, &page->flags);
else {
Expand Down
2 changes: 1 addition & 1 deletion arch/parisc/include/asm/cmpxchg.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size)
#endif
case 4: return __cmpxchg_u32((unsigned int *)ptr,
(unsigned int)old, (unsigned int)new_);
case 1: return __cmpxchg_u8((u8 *)ptr, (u8)old, (u8)new_);
case 1: return __cmpxchg_u8((u8 *)ptr, old & 0xff, new_ & 0xff);
}
__cmpxchg_called_with_bad_pointer();
return old;
Expand Down
6 changes: 4 additions & 2 deletions arch/s390/kernel/cpcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ static int diag8_noresponse(int cmdlen)

static int diag8_response(int cmdlen, char *response, int *rlen)
{
unsigned long _cmdlen = cmdlen | 0x40000000L;
unsigned long _rlen = *rlen;
register unsigned long reg2 asm ("2") = (addr_t) cpcmd_buf;
register unsigned long reg3 asm ("3") = (addr_t) response;
register unsigned long reg4 asm ("4") = cmdlen | 0x40000000L;
register unsigned long reg5 asm ("5") = *rlen;
register unsigned long reg4 asm ("4") = _cmdlen;
register unsigned long reg5 asm ("5") = _rlen;

asm volatile(
" diag %2,%0,0x8\n"
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/agp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ config AGP_HP_ZX1

config AGP_PARISC
tristate "HP Quicksilver AGP support"
depends on AGP && PARISC && 64BIT
depends on AGP && PARISC && 64BIT && IOMMU_SBA
help
This option gives you AGP GART support for the HP Quicksilver
AGP bus adapter on HP PA-RISC machines (Ok, just on the C8000
Expand Down
47 changes: 21 additions & 26 deletions drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -4151,20 +4151,19 @@ int clk_notifier_register(struct clk *clk, struct notifier_block *nb)
/* search the list of notifiers for this clk */
list_for_each_entry(cn, &clk_notifier_list, node)
if (cn->clk == clk)
break;
goto found;

/* if clk wasn't in the notifier list, allocate new clk_notifier */
if (cn->clk != clk) {
cn = kzalloc(sizeof(*cn), GFP_KERNEL);
if (!cn)
goto out;
cn = kzalloc(sizeof(*cn), GFP_KERNEL);
if (!cn)
goto out;

cn->clk = clk;
srcu_init_notifier_head(&cn->notifier_head);
cn->clk = clk;
srcu_init_notifier_head(&cn->notifier_head);

list_add(&cn->node, &clk_notifier_list);
}
list_add(&cn->node, &clk_notifier_list);

found:
ret = srcu_notifier_chain_register(&cn->notifier_head, nb);

clk->core->notifier_count++;
Expand All @@ -4189,32 +4188,28 @@ EXPORT_SYMBOL_GPL(clk_notifier_register);
*/
int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb)
{
struct clk_notifier *cn = NULL;
int ret = -EINVAL;
struct clk_notifier *cn;
int ret = -ENOENT;

if (!clk || !nb)
return -EINVAL;

clk_prepare_lock();

list_for_each_entry(cn, &clk_notifier_list, node)
if (cn->clk == clk)
break;

if (cn->clk == clk) {
ret = srcu_notifier_chain_unregister(&cn->notifier_head, nb);
list_for_each_entry(cn, &clk_notifier_list, node) {
if (cn->clk == clk) {
ret = srcu_notifier_chain_unregister(&cn->notifier_head, nb);

clk->core->notifier_count--;
clk->core->notifier_count--;

/* XXX the notifier code should handle this better */
if (!cn->notifier_head.head) {
srcu_cleanup_notifier_head(&cn->notifier_head);
list_del(&cn->node);
kfree(cn);
/* XXX the notifier code should handle this better */
if (!cn->notifier_head.head) {
srcu_cleanup_notifier_head(&cn->notifier_head);
list_del(&cn->node);
kfree(cn);
}
break;
}

} else {
ret = -ENOENT;
}

clk_prepare_unlock();
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/socfpga/clk-gate.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static unsigned long socfpga_clk_recalc_rate(struct clk_hw *hwclk,
val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift;
val &= GENMASK(socfpgaclk->width - 1, 0);
/* Check for GPIO_DB_CLK by its offset */
if ((int) socfpgaclk->div_reg & SOCFPGA_GPIO_DB_CLK_OFFSET)
if ((uintptr_t) socfpgaclk->div_reg & SOCFPGA_GPIO_DB_CLK_OFFSET)
div = val + 1;
else
div = (1 << val);
Expand Down
12 changes: 3 additions & 9 deletions drivers/counter/stm32-timer-cnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ struct stm32_timer_cnt {
struct counter_device counter;
struct regmap *regmap;
struct clk *clk;
u32 ceiling;
u32 max_arr;
};

Expand Down Expand Up @@ -67,14 +66,15 @@ static int stm32_count_write(struct counter_device *counter,
struct counter_count_write_value *val)
{
struct stm32_timer_cnt *const priv = counter->priv;
u32 cnt;
u32 cnt, ceiling;
int err;

err = counter_count_write_value_get(&cnt, COUNTER_COUNT_POSITION, val);
if (err)
return err;

if (cnt > priv->ceiling)
regmap_read(priv->regmap, TIM_ARR, &ceiling);
if (cnt > ceiling)
return -EINVAL;

return regmap_write(priv->regmap, TIM_CNT, cnt);
Expand Down Expand Up @@ -136,10 +136,6 @@ static int stm32_count_function_set(struct counter_device *counter,

regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN, 0);

/* TIMx_ARR register shouldn't be buffered (ARPE=0) */
regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_ARPE, 0);
regmap_write(priv->regmap, TIM_ARR, priv->ceiling);

regmap_update_bits(priv->regmap, TIM_SMCR, TIM_SMCR_SMS, sms);

/* Make sure that registers are updated */
Expand Down Expand Up @@ -197,7 +193,6 @@ static ssize_t stm32_count_ceiling_write(struct counter_device *counter,
regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_ARPE, 0);
regmap_write(priv->regmap, TIM_ARR, ceiling);

priv->ceiling = ceiling;
return len;
}

Expand Down Expand Up @@ -369,7 +364,6 @@ static int stm32_timer_cnt_probe(struct platform_device *pdev)

priv->regmap = ddata->regmap;
priv->clk = ddata->clk;
priv->ceiling = ddata->max_arr;
priv->max_arr = ddata->max_arr;

priv->counter.name = dev_name(dev);
Expand Down
22 changes: 20 additions & 2 deletions drivers/gpu/drm/i915/display/intel_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,31 @@ static void intel_dsm_platform_mux_info(acpi_handle dhandle)
return;
}

if (!pkg->package.count) {
DRM_DEBUG_DRIVER("no connection in _DSM\n");
return;
}

connector_count = &pkg->package.elements[0];
DRM_DEBUG_DRIVER("MUX info connectors: %lld\n",
(unsigned long long)connector_count->integer.value);
for (i = 1; i < pkg->package.count; i++) {
union acpi_object *obj = &pkg->package.elements[i];
union acpi_object *connector_id = &obj->package.elements[0];
union acpi_object *info = &obj->package.elements[1];
union acpi_object *connector_id;
union acpi_object *info;

if (obj->type != ACPI_TYPE_PACKAGE || obj->package.count < 2) {
DRM_DEBUG_DRIVER("Invalid object for MUX #%d\n", i);
continue;
}

connector_id = &obj->package.elements[0];
info = &obj->package.elements[1];
if (info->type != ACPI_TYPE_BUFFER || info->buffer.length < 4) {
DRM_DEBUG_DRIVER("Invalid info for MUX obj #%d\n", i);
continue;
}

DRM_DEBUG_DRIVER("Connector id: 0x%016llx\n",
(unsigned long long)connector_id->integer.value);
DRM_DEBUG_DRIVER(" port id: %s\n",
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/msm/msm_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ static int msm_drm_init(struct device *dev, struct drm_driver *drv)
kfree(priv);
err_put_drm_dev:
drm_dev_put(ddev);
platform_set_drvdata(pdev, NULL);
return ret;
}

Expand Down
7 changes: 4 additions & 3 deletions drivers/i2c/i2c-core-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,14 @@ EXPORT_SYMBOL_GPL(i2c_recover_bus);
static void i2c_init_recovery(struct i2c_adapter *adap)
{
struct i2c_bus_recovery_info *bri = adap->bus_recovery_info;
char *err_str;
char *err_str, *err_level = KERN_ERR;

if (!bri)
return;

if (!bri->recover_bus) {
err_str = "no recover_bus() found";
err_str = "no suitable method provided";
err_level = KERN_DEBUG;
goto err;
}

Expand Down Expand Up @@ -290,7 +291,7 @@ static void i2c_init_recovery(struct i2c_adapter *adap)

return;
err:
dev_err(&adap->dev, "Not using recovery: %s\n", err_str);
dev_printk(err_level, &adap->dev, "Not using recovery: %s\n", err_str);
adap->bus_recovery_info = NULL;
}

Expand Down
4 changes: 3 additions & 1 deletion drivers/infiniband/core/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ static struct workqueue_struct *addr_wq;

static const struct nla_policy ib_nl_addr_policy[LS_NLA_TYPE_MAX] = {
[LS_NLA_TYPE_DGID] = {.type = NLA_BINARY,
.len = sizeof(struct rdma_nla_ls_gid)},
.len = sizeof(struct rdma_nla_ls_gid),
.validation_type = NLA_VALIDATE_MIN,
.min = sizeof(struct rdma_nla_ls_gid)},
};

static inline bool ib_nl_is_good_ip_resp(const struct nlmsghdr *nlh)
Expand Down
3 changes: 2 additions & 1 deletion drivers/infiniband/hw/cxgb4/cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3616,7 +3616,8 @@ int c4iw_destroy_listen(struct iw_cm_id *cm_id)
c4iw_init_wr_wait(ep->com.wr_waitp);
err = cxgb4_remove_server(
ep->com.dev->rdev.lldi.ports[0], ep->stid,
ep->com.dev->rdev.lldi.rxq_ids[0], true);
ep->com.dev->rdev.lldi.rxq_ids[0],
ep->com.local_addr.ss_family == AF_INET6);
if (err)
goto done;
err = c4iw_wait_for_reply(&ep->com.dev->rdev, ep->com.wr_waitp,
Expand Down
6 changes: 5 additions & 1 deletion drivers/net/can/usb/peak_usb/pcan_usb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ static int peak_usb_create_dev(const struct peak_usb_adapter *peak_usb_adapter,
if (dev->adapter->dev_set_bus) {
err = dev->adapter->dev_set_bus(dev, 0);
if (err)
goto lbl_unregister_candev;
goto adap_dev_free;
}

/* get device number early */
Expand All @@ -868,6 +868,10 @@ static int peak_usb_create_dev(const struct peak_usb_adapter *peak_usb_adapter,

return 0;

adap_dev_free:
if (dev->adapter->dev_free)
dev->adapter->dev_free(dev);

lbl_unregister_candev:
unregister_candev(netdev);

Expand Down
Loading