[PATCH 4.19 317/346] spi: pic32: Dont leak DMA channels in probe error path

2020-12-28 Thread Greg Kroah-Hartman
From: Lukas Wunner commit c575e9113bff5e024d75481613faed5ef9d465b2 upstream. If the calls to devm_request_irq() or devm_spi_register_master() fail on probe of the PIC32 SPI driver, the DMA channels requested by pic32_spi_dma_prep() are erroneously not released. Plug the leak. Fixes: 1bcb9f8ceb

[PATCH 4.19 290/346] USB: serial: digi_acceleport: fix write-wakeup deadlocks

2020-12-28 Thread Greg Kroah-Hartman
From: Johan Hovold commit 5098e77962e7c8947f87bd8c5869c83e000a522a upstream. The driver must not call tty_wakeup() while holding its private lock as line disciplines are allowed to call back into write() from write_wakeup(), leading to a deadlock. Also remove the unneeded work struct that was u

[PATCH 4.19 288/346] EDAC/amd64: Fix PCI component registration

2020-12-28 Thread Greg Kroah-Hartman
From: Borislav Petkov commit 706657b1febf446a9ba37dc51b89f46604f57ee9 upstream. In order to setup its PCI component, the driver needs any node private instance in order to get a reference to the PCI device and hand that into edac_pci_create_generic_ctl(). For convenience, it uses the 0th memory

[PATCH 4.19 272/346] ALSA: hda/realtek - Enable headset mic of ASUS X430UN with ALC256

2020-12-28 Thread Greg Kroah-Hartman
From: Chris Chiu commit 5cfca59604e423f720297e30a9dc493eea623493 upstream. The ASUS laptop X430UN with ALC256 can't detect the headset microphone until ALC256_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied. Signed-off-by: Chris Chiu Signed-off-by: Jian-Hong Pan Cc: Link: https://lore.kernel.org/r/

[PATCH 4.19 271/346] ALSA: hda: Fix regressions on clear and reconfig sysfs

2020-12-28 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 2506318e382c4c7daa77bdc48f80a0ee82804588 upstream. It seems that the HD-audio clear and reconfig sysfs don't work any longer after the recent driver core change. There are multiple issues around that: the linked list corruption and the dead device handling. The former

[PATCH 4.19 253/346] cfg80211: initialize rekey_data

2020-12-28 Thread Greg Kroah-Hartman
From: Sara Sharon [ Upstream commit f495acd8851d7b345e5f0e521b2645b1e1f928a0 ] In case we have old supplicant, the akm field is uninitialized. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20201129172929.930f0ab7ebee.Ic546e384efab3f4a89f318eafd

[PATCH 4.19 257/346] Input: goodix - add upside-down quirk for Teclast X98 Pro tablet

2020-12-28 Thread Greg Kroah-Hartman
From: Simon Beginn [ Upstream commit cffdd6d90482316e18d686060a4397902ea04bd2 ] The touchscreen on the Teclast x98 Pro is also mounted upside-down in relation to the display orientation. Signed-off-by: Simon Beginn Signed-off-by: Bastien Nocera Link: https://lore.kernel.org/r/20201117004253.2

[PATCH 4.19 251/346] kconfig: fix return value of do_error_if()

2020-12-28 Thread Greg Kroah-Hartman
From: Masahiro Yamada [ Upstream commit 135b4957eac43af2aedf8e2a277b9540f33c2558 ] $(error-if,...) is expanded to an empty string. Currently, it relies on eval_clause() returning xstrdup("") when all attempts for expansion fail, but the correct implementation is to make do_error_if() return xstr

[PATCH 4.19 226/346] ASoC: wm_adsp: remove "ctl" from list on error in wm_adsp_create_control()

2020-12-28 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 85a775a0e48f9b73db310d0d762a08a46d63 ] The error handling frees "ctl" but it's still on the "dsp->ctl_list" list so that could result in a use after free. Remove it from the list before returning. Fixes: 2323736dca72 ("ASoC: wm_adsp: Add basic support

[PATCH 4.19 214/346] powerpc/pseries/hibernation: drop pseries_suspend_begin() from suspend ops

2020-12-28 Thread Greg Kroah-Hartman
From: Nathan Lynch [ Upstream commit 52719fce3f4c7a8ac9eaa191e8d75a697f9fbcbc ] There are three ways pseries_suspend_begin() can be reached: 1. When "mem" is written to /sys/power/state: kobj_attr_store() -> state_store() -> pm_suspend() -> suspend_devices_and_enter() -> pseries_su

[PATCH 4.19 245/346] pwm: zx: Add missing cleanup in error path

2020-12-28 Thread Greg Kroah-Hartman
From: Uwe Kleine-König [ Upstream commit 269effd03f6142df4c74814cfdd5f0b041b30bf9 ] zx_pwm_probe() called clk_prepare_enable() before; this must be undone in the error path. Fixes: 4836193c435c ("pwm: Add ZTE ZX PWM device driver") Signed-off-by: Uwe Kleine-König Acked-by: Shawn Guo Signed-of

[PATCH 4.19 296/346] USB: serial: keyspan_pda: fix write unthrottling

2020-12-28 Thread Greg Kroah-Hartman
From: Johan Hovold commit 320f9028c7873c3c7710e8e93e5c979f4c857490 upstream. The driver did not update its view of the available device buffer space until write() was called in task context. This meant that write_room() would return 0 even after the device had sent a write-unthrottle notificatio

[PATCH 4.19 293/346] USB: serial: keyspan_pda: fix stalled writes

2020-12-28 Thread Greg Kroah-Hartman
From: Johan Hovold commit c01d2c58698f710c9e13ba3e2d296328606f74fd upstream. Make sure to clear the write-busy flag also in case no new data was submitted due to lack of device buffer space so that writing is resumed once space again becomes available. Fixes: 507ca9bc0476 ("[PATCH] USB: add abi

Re: [PATCH 3/3] overlayfs: Report writeback errors on upper

2020-12-28 Thread Matthew Wilcox
On Mon, Dec 28, 2020 at 08:25:50AM -0500, Jeff Layton wrote: > To be clear, the main thing you'll lose with the method above is the > ability to see an unseen error on a newly opened fd, if there was an > overlayfs mount using the same upper sb before your open occurred. > > IOW, consider two over

[PATCH 4.19 281/346] s390/dasd: fix hanging device offline processing

2020-12-28 Thread Greg Kroah-Hartman
From: Stefan Haberland commit 658a337a606f48b7ebe451591f7681d383fa115e upstream. For an LCU update a read unit address configuration IO is required. This is started using sleep_on(), which has early exit paths in case the device is not usable for IO. For example when it is in offline processing.

[PATCH 4.19 241/346] libnvdimm/label: Return -ENXIO for no slot in __blk_label_update

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 4c46764733c85b82c07e9559b39da4d00a7dd659 ] Forget to set error code when nd_label_alloc_slot failed, and we add it to avoid overwritten error code. Fixes: 0ba1c634892b ("libnvdimm: write blk label set") Signed-off-by: Zhang Qilong Link: https://lore.kernel.

[PATCH 4.19 258/346] media: gspca: Fix memory leak in probe

2020-12-28 Thread Greg Kroah-Hartman
From: Alan Stern commit e469d0b09a19496e1972a20974bbf55b728151eb upstream. The gspca driver leaks memory when a probe fails. gspca_dev_probe2() calls v4l2_device_register(), which takes a reference to the underlying device node (in this case, a USB interface). But the failure pathway neglects

[PATCH 4.19 256/346] Input: cros_ec_keyb - send scancodes in addition to key events

2020-12-28 Thread Greg Kroah-Hartman
From: Dmitry Torokhov [ Upstream commit 80db2a087f425b63f0163bc95217abd01c637cb5 ] To let userspace know what 'scancodes' should be used in EVIOCGKEYCODE and EVIOCSKEYCODE ioctls, we should send EV_MSC/MSC_SCAN events in addition to EV_KEY/KEY_* events. The driver already declared MSC_SCAN capab

[PATCH 4.19 231/346] watchdog: Fix potential dereferencing of null pointer

2020-12-28 Thread Greg Kroah-Hartman
From: Wang Wensheng [ Upstream commit 6f733cb2e7db38f8141b14740bcde577844a03b7 ] A reboot notifier, which stops the WDT by calling the stop hook without any check, would be registered when we set WDOG_STOP_ON_REBOOT flag. Howerer we allow the WDT driver to omit the stop hook since commit "d0684

[PATCH 4.19 275/346] ALSA: hda/realtek: Add quirk for MSI-GP73

2020-12-28 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 09926202e939fd699650ac0fc0baa5757e069390 upstream. MSI-GP73 (with SSID 1462:1229) requires yet again ALC1220_FIXUP_CLEVO_P950 quirk like other MSI models. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=210793 Cc: Link: https://lore.kernel.org/r/20201220080943.24

[PATCH 4.19 255/346] lwt: Disable BH too in run_lwt_bpf()

2020-12-28 Thread Greg Kroah-Hartman
From: Dongdong Wang [ Upstream commit d9054a1ff585ba01029584ab730efc794603d68f ] The per-cpu bpf_redirect_info is shared among all skb_do_redirect() and BPF redirect helpers. Callers on RX path are all in BH context, disabling preemption is not sufficient to prevent BH interruption. In producti

[PATCH 4.19 282/346] s390/dasd: prevent inconsistent LCU device data

2020-12-28 Thread Greg Kroah-Hartman
From: Stefan Haberland commit a29ea01653493b94ea12bb2b89d1564a265081b6 upstream. Prevent _lcu_update from adding a device to a pavgroup if the LCU still requires an update. The data is not reliable any longer and in parallel devices might have been moved on the lists already. This might lead to

[PATCH 4.19 274/346] ALSA: pcm: oss: Fix a few more UBSAN fixes

2020-12-28 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 11cb881bf075cea41092a20236ba708b18e1dbb2 upstream. There are a few places that call round{up|down}_pow_of_two() with the value zero, and this causes undefined behavior warnings. Avoid calling those macros if such a nonsense value is passed; it's a minor optimization as

[PATCH 4.19 252/346] ARM: sunxi: Add machine match for the Allwinner V3 SoC

2020-12-28 Thread Greg Kroah-Hartman
From: Paul Kocialkowski [ Upstream commit ad2091f893bd5dfe2824f0d6819600d120698e9f ] The Allwinner V3 SoC shares the same base as the V3s but comes with extra pins and features available. As a result, it has its dedicated compatible string (already used in device trees), which is added here. Si

[PATCH 4.19 278/346] ALSA: usb-audio: Disable sample read check if firmware doesnt give back

2020-12-28 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 9df28edce7c6ab38050235f6f8b43dd7ccd01b6d upstream. Some buggy firmware don't give the current sample rate but leaves zero. Handle this case more gracefully without warning but just skip the current rate verification from the next time. Cc: Link: https://lore.kernel.o

[PATCH 4.19 264/346] media: ipu3-cio2: Validate mbus format in setting subdev format

2020-12-28 Thread Greg Kroah-Hartman
From: Sakari Ailus commit a86cf9b29e8b12811cf53c4970eefe0c1d290476 upstream. Validate media bus code, width and height when setting the subdev format. This effectively reworks how setting subdev format is implemented in the driver. Fixes: c2a6a07afe4a ("media: intel-ipu3: cio2: add new MIPI-CS

[PATCH 4.19 263/346] media: ipu3-cio2: Serialise access to pad format

2020-12-28 Thread Greg Kroah-Hartman
From: Sakari Ailus commit 55a6c6b2be3d6670bf5772364d8208bd8dc17da4 upstream. Pad format can be accessed from user space. Serialise access to it. Fixes: c2a6a07afe4a ("media: intel-ipu3: cio2: add new MIPI-CSI2 driver") Signed-off-by: Sakari Ailus Reviewed-by: Laurent Pinchart Reviewed-by: Bin

[PATCH 4.19 259/346] media: sunxi-cir: ensure IR is handled when it is continuous

2020-12-28 Thread Greg Kroah-Hartman
From: Sean Young commit 3f56df4c8ffeb120ed41906d3aae71799b7e726a upstream. If a user holds a button down on a remote, then no ir idle interrupt will be generated until the user releases the button, depending on how quickly the remote repeats. No IR is processed until that point, which means that

[PATCH 4.19 261/346] media: ipu3-cio2: Remove traces of returned buffers

2020-12-28 Thread Greg Kroah-Hartman
From: Sakari Ailus commit 61e7f892b5ee1dd10ea8bff805f3c3fe6e535959 upstream. If starting a video buffer queue fails, the buffers are returned to videobuf2. Remove the reference to the buffer from the driver's queue as well. Fixes: c2a6a07afe4a ("media: intel-ipu3: cio2: add new MIPI-CSI2 driver

[PATCH 4.19 250/346] clk: sunxi-ng: Make sure divider tables have sentinel

2020-12-28 Thread Greg Kroah-Hartman
From: Jernej Skrabec [ Upstream commit 48f68de00c1405351fa0e7bc44bca067c49cd0a3 ] Two clock divider tables are missing sentinel at the end. Effect of that is that clock framework reads past the last entry. Fix that with adding sentinel at the end. Issue was discovered with KASan. Fixes: 0577e4

[PATCH 4.19 243/346] watchdog: coh901327: add COMMON_CLK dependency

2020-12-28 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 36c47df85ee8e1f8a35366ac11324f8875de00eb ] clang produces a build failure in configurations without COMMON_CLK when a timeout calculation goes wrong: arm-linux-gnueabi-ld: drivers/watchdog/coh901327_wdt.o: in function `coh901327_enable': coh901327_wdt.c:(.

[PATCH 4.19 224/346] extcon: max77693: Fix modalias string

2020-12-28 Thread Greg Kroah-Hartman
From: Marek Szyprowski [ Upstream commit e1efdb604f5c9903a5d92ef42244009d3c04880f ] The platform device driver name is "max77693-muic", so advertise it properly in the modalias string. This fixes automated module loading when this driver is compiled as a module. Fixes: db1b9037424b ("extcon: MA

[PATCH 4.19 265/346] media: ipu3-cio2: Make the field on subdev format V4L2_FIELD_NONE

2020-12-28 Thread Greg Kroah-Hartman
From: Sakari Ailus commit 219a8b9c04e54872f9a4d566633fb42f08bcbe2a upstream. The ipu3-cio2 doesn't make use of the field and this is reflected in V4L2 buffers as well as the try format. Do this in active format, too. Fixes: c2a6a07afe4a ("media: intel-ipu3: cio2: add new MIPI-CSI2 driver") Sign

[PATCH 4.19 223/346] clk: tegra: Fix duplicated SE clock entry

2020-12-28 Thread Greg Kroah-Hartman
From: Dmitry Osipenko [ Upstream commit 5bf5861d6ea6c3f4b38fc8fda2062b2dc44ac63d ] The periph_clks[] array contains duplicated entry for Security Engine clock which was meant to be defined for T210, but it wasn't added properly. This patch corrects the T210 SE entry and fixes the following error

[PATCH 4.19 240/346] net: korina: fix return value

2020-12-28 Thread Greg Kroah-Hartman
From: Vincent Stehlé [ Upstream commit 7eb000bdbe7c7da811ef51942b356f6e819b13ba ] The ndo_start_xmit() method must not attempt to free the skb to transmit when returning NETDEV_TX_BUSY. Therefore, make sure the korina_send_packet() function returns NETDEV_TX_OK when it frees a packet. Fixes: ef

[PATCH 4.19 239/346] net: allwinner: Fix some resources leak in the error handling path of the probe and in the remove function

2020-12-28 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 322e53d1e2529ae9d501f5e0f20604a79b873aef ] 'irq_of_parse_and_map()' should be balanced by a corresponding 'irq_dispose_mapping()' call. Otherwise, there is some resources leaks. Add such a call in the error handling path of the probe function and in th

[PATCH 4.19 248/346] qlcnic: Fix error code in probe

2020-12-28 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 0d52848632a357948028eab67ff9b7cc0c12a0fb ] Return -EINVAL if we can't find the correct device. Currently it returns success. Fixes: 13159183ec7a ("qlcnic: 83xx base driver") Signed-off-by: Dan Carpenter Link: https://lore.kernel.org/r/X9nHbMqEyI/xPfGd@mwa

[PATCH 4.19 221/346] x86/kprobes: Restore BTF if the single-stepping is cancelled

2020-12-28 Thread Greg Kroah-Hartman
From: Masami Hiramatsu [ Upstream commit 78ff2733ff352175eb7f4418a34654346e1b6cd2 ] Fix to restore BTF if single-stepping causes a page fault and it is cancelled. Usually the BTF flag was restored when the single stepping is done (in resume_execution()). However, if a page fault happens on the

[PATCH 4.19 242/346] watchdog: qcom: Avoid context switch in restart handler

2020-12-28 Thread Greg Kroah-Hartman
From: Manivannan Sadhasivam [ Upstream commit 7948fab26bcc468aa2a76462f441291b5fb0d5c7 ] The use of msleep() in the restart handler will cause scheduler to induce a context switch which is not desirable. This generates below warning on SDX55 when WDT is the only available restart source: [ 39

[PATCH 4.19 218/346] speakup: fix uninitialized flush_lock

2020-12-28 Thread Greg Kroah-Hartman
From: Yang Yingliang [ Upstream commit d1b928ee1cfa965a3327bbaa59bfa005d97fa0fe ] The flush_lock is uninitialized, use DEFINE_SPINLOCK to define and initialize flush_lock. Fixes: c6e3fd22cd53 ("Staging: add speakup to the staging directory") Reported-by: Hulk Robot Reviewed-by: Samuel Thibault

[PATCH 4.19 222/346] bus: fsl-mc: fix error return code in fsl_mc_object_allocate()

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Changzhong [ Upstream commit 3d70fb03711c37bc64e8e9aea5830f498835f6bf ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 197f4d6a4a00 ("staging: fsl-mc: fsl-mc object allocator driver") Reported-by: Hulk Robot

[PATCH 4.19 191/346] lockd: dont use interval-based rebinding over TCP

2020-12-28 Thread Greg Kroah-Hartman
From: Calum Mackay [ Upstream commit 9b82d88d5976e5f2b8015d58913654856576ace5 ] NLM uses an interval-based rebinding, i.e. it clears the transport's binding under certain conditions if more than 60 seconds have elapsed since the connection was last bound. This rebinding is not necessary for an

[PATCH 4.19 225/346] mac80211: dont set set TDLS STA bandwidth wider than possible

2020-12-28 Thread Greg Kroah-Hartman
From: Johannes Berg [ Upstream commit f65607cdbc6b0da356ef5a22552ddd9313cf87a0 ] When we set up a TDLS station, we set sta->sta.bandwidth solely based on the capabilities, because the "what's the current bandwidth" check is bypassed and only applied for other types of stations. This leads to th

[PATCH 4.19 219/346] nfsd: Fix message level for normal termination

2020-12-28 Thread Greg Kroah-Hartman
From: kazuo ito [ Upstream commit 4420440c57892779f265108f46f83832a88ca795 ] The warning message from nfsd terminating normally can confuse system adminstrators or monitoring software. Though it's not exactly fair to pin-point a commit where it originated, the current form in the current place

[PATCH 4.19 235/346] nfc: s3fwrn5: Release the nfc firmware

2020-12-28 Thread Greg Kroah-Hartman
From: Bongsu Jeon [ Upstream commit a4485baefa1efa596702ebffd5a9c760d42b14b5 ] add the code to release the nfc firmware when the firmware image size is wrong. Fixes: c04c674fadeb ("nfc: s3fwrn5: Add driver for Samsung S3FWRN5 NFC Chip") Signed-off-by: Bongsu Jeon Reviewed-by: Krzysztof Kozlows

[PATCH 4.19 238/346] net: bcmgenet: Fix a resource leak in an error handling path in the probe functin

2020-12-28 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 4375ada01963d1ebf733d60d1bb6e5db401e1ac6 ] If the 'register_netdev()' call fails, we must undo a previous 'bcmgenet_mii_init()' call. Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file") Signed-off-by: Christophe JAILLET Acked-by: Florian Faine

[PATCH 4.19 156/346] soc: ti: knav_qmss: fix reference leak in knav_queue_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit ec8684847d8062496c4619bc3fcff31c19d56847 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in knav_queue_probe, so we should fix it. Fixes: 41f93af900a20 ("soc: ti: add Key

[PATCH 4.19 193/346] vfio-pci: Use io_remap_pfn_range() for PCI IO memory

2020-12-28 Thread Greg Kroah-Hartman
From: Jason Gunthorpe [ Upstream commit 7b06a56d468b756ad6bb43ac21b11e474ebc54a0 ] commit f8f6ae5d077a ("mm: always have io_remap_pfn_range() set pgprot_decrypted()") allows drivers using mmap to put PCI memory mapped BAR space into userspace to work correctly on AMD SME systems that default to

[PATCH 4.19 199/346] memstick: r592: Fix error return in r592_probe()

2020-12-28 Thread Greg Kroah-Hartman
From: Jing Xiangfeng [ Upstream commit db29d3d1c2451e673e29c7257471e3ce9d50383a ] Fix to return a error code from the error handling case instead of 0. Fixes: 926341250102 ("memstick: add driver for Ricoh R5C592 card reader") Signed-off-by: Jing Xiangfeng Link: https://lore.kernel.org/r/202011

[PATCH 4.19 198/346] arm64: dts: rockchip: Fix UART pull-ups on rk3328

2020-12-28 Thread Greg Kroah-Hartman
From: Chen-Yu Tsai [ Upstream commit 94dad6bed3c86c00050bf7c2b2ad6b630facae31 ] For UARTs, the local pull-ups should be on the RX pin, not the TX pin. UARTs transmit active-low, so a disconnected RX pin should be pulled high instead of left floating to prevent noise being interpreted as transmis

[PATCH 4.19 188/346] ath10k: Release some resources in an error handling path

2020-12-28 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 6364e693f4a7a89a2fb3dd2cbd6cc06d5fd6e26d ] Should an error occur after calling 'ath10k_usb_create()', it should be undone by a corresponding 'ath10k_usb_destroy()' call Fixes: 4db66499df91 ("ath10k: add initial USB support") Signed-off-by: Christophe J

[PATCH 4.19 207/346] cpufreq: loongson1: Add missing MODULE_ALIAS

2020-12-28 Thread Greg Kroah-Hartman
From: Pali Rohár [ Upstream commit b9acab091842ca8b22798bb809f7abf5408a ] This patch adds missing MODULE_ALIAS for automatic loading of this cpufreq driver when it is compiled as an external module. Signed-off-by: Pali Rohár Fixes: a0a22cf14472f ("cpufreq: Loongson1: Add cpufreq driver for

[PATCH 4.19 209/346] scsi: qedi: Fix missing destroy_workqueue() on error in __qedi_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit 62eebd5247c4e4ce08826ad5995cf4dd7ce919dd ] Add the missing destroy_workqueue() before return from __qedi_probe in the error handling case when fails to create workqueue qedi->offload_thread. Link: https://lore.kernel.org/r/20201109091518.55941-1-miaoqingl..

[PATCH 4.19 205/346] cpufreq: mediatek: Add missing MODULE_DEVICE_TABLE

2020-12-28 Thread Greg Kroah-Hartman
From: Pali Rohár [ Upstream commit af6eca06501118af3e2ad46eee8edab20624b74e ] This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this cpufreq driver when it is compiled as an external module. Signed-off-by: Pali Rohár Fixes: 501c574

[PATCH 4.19 213/346] platform/x86: mlx-platform: Fix item counter assignment for MSN2700, MSN24xx systems

2020-12-28 Thread Greg Kroah-Hartman
From: Vadim Pasternak [ Upstream commit ba4939f1dd46dde08c2f9b9d7ac86ed3ea7ead86 ] Fix array names to match assignments for data items and data items counter in 'mlxplat_mlxcpld_default_items' structure for: .data = mlxplat_mlxcpld_default_pwr_items_data, .count = ARRAY_SIZE(mlxp

[PATCH 4.19 206/346] cpufreq: st: Add missing MODULE_DEVICE_TABLE

2020-12-28 Thread Greg Kroah-Hartman
From: Pali Rohár [ Upstream commit 183747ab52654eb406fc6b5bfb40806b75d31811 ] This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this cpufreq driver when it is compiled as an external module. Signed-off-by: Pali Rohár Fixes: ab0ea25

[PATCH 4.19 211/346] seq_buf: Avoid type mismatch for seq_buf_init

2020-12-28 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit d9a9280a0d0ae51dc1d4142138b99242b7ec8ac6 ] Building with W=2 prints a number of warnings for one function that has a pointer type mismatch: linux/seq_buf.h: In function 'seq_buf_init': linux/seq_buf.h:35:12: warning: pointer targets in assignment from 'unsi

[PATCH 4.19 184/346] ARM: dts: at91: at91sam9rl: fix ADC triggers

2020-12-28 Thread Greg Kroah-Hartman
From: Alexandre Belloni [ Upstream commit 851a95da583c26e2ddeb7281e9b61f0d76ea5aba ] The triggers for the ADC were taken from at91sam9260 dtsi but are not correct. Fixes: a4c1d6c75822 ("ARM: at91/dt: sam9rl: add lcd, adc, usb gadget and pwm support") Signed-off-by: Alexandre Belloni Link: ht

[PATCH 4.19 204/346] cpufreq: highbank: Add missing MODULE_DEVICE_TABLE

2020-12-28 Thread Greg Kroah-Hartman
From: Pali Rohár [ Upstream commit 9433777a6e0aae27468d3434b75cd51bb88ff711 ] This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this cpufreq driver when it is compiled as an external module. Signed-off-by: Pali Rohár Fixes: 6754f55

[PATCH 4.19 229/346] watchdog: sprd: remove watchdog disable from resume fail path

2020-12-28 Thread Greg Kroah-Hartman
From: Lingling Xu [ Upstream commit f61a59acb462840bebcc192f754fe71b6a16ff99 ] sprd_wdt_start() would return fail if the loading operation is not completed in a certain time, disabling watchdog for that case would probably cause the kernel crash when kick watchdog later, that's too bad, so remov

[PATCH 4.19 200/346] net/mlx5: Properly convey driver version to firmware

2020-12-28 Thread Greg Kroah-Hartman
From: Leon Romanovsky [ Upstream commit 907af0f0cab4ee5d5604f182ecec2c5b5119d294 ] mlx5 firmware expects driver version in specific format X.X.X, so make it always correct and based on real kernel version aligned with the driver. Fixes: 012e50e109fd ("net/mlx5: Set driver version into firmware"

[PATCH 4.19 236/346] powerpc/ps3: use dma_mapping_error()

2020-12-28 Thread Greg Kroah-Hartman
From: Vincent Stehlé [ Upstream commit d0edaa28a1f7830997131cbce87b6c52472825d1 ] The DMA address returned by dma_map_single() should be checked with dma_mapping_error(). Fix the ps3stor_setup() function accordingly. Fixes: 80071802cb9c ("[POWERPC] PS3: Storage Driver Core") Signed-off-by: Vinc

[PATCH 4.19 151/346] spi: mxs: fix reference leak in mxs_spi_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 03fc41afaa6549baa2dab7a84e1afaf5cadb5b18 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in mxs_spi_probe, so we should fix it. Fixes: b7969caf41a1d ("spi: mxs: implement

[PATCH 4.19 247/346] perf record: Fix memory leak when using --user-regs=? to list registers

2020-12-28 Thread Greg Kroah-Hartman
From: Zheng Zengkai [ Upstream commit 2eb5dd418034ecea2f7031e3d33f2991a878b148 ] When using 'perf record's option '-I' or '--user-regs=' along with argument '?' to list available register names, memory of variable 'os' allocated by strdup() needs to be released before __parse_regs() returns, oth

[PATCH 4.19 203/346] clocksource/drivers/arm_arch_timer: Correct fault programming of CNTKCTL_EL1.EVNTI

2020-12-28 Thread Greg Kroah-Hartman
From: Keqian Zhu [ Upstream commit 8b7770b877d187bfdae1eaf587bd2b792479a31c ] ARM virtual counter supports event stream, it can only trigger an event when the trigger bit (the value of CNTKCTL_EL1.EVNTI) of CNTVCT_EL0 changes, so the actual period of event stream is 2^(cntkctl_evnti + 1). For ex

[PATCH 4.19 157/346] soc: ti: Fix reference imbalance in knav_dma_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit b4fa73358c306d747a2200aec6f7acb97e5750e6 ] The patch fix two reference leak. 1) pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to call put operation will result in reference leak. 2) The pm_runtime_enable will i

[PATCH 4.19 185/346] platform/x86: dell-smbios-base: Fix error return code in dell_smbios_init

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit 2425ccd30fd78ce35237350fe8baac31dc18bd45 ] Fix to return the error code -ENODEV when fails to init wmi and smm. Fixes: 41e36f2f85af ("platform/x86: dell-smbios: Link all dell-smbios-* modules together") Reported-by: Hulk Robot Signed-off-by: Qinglang Miao

[PATCH 4.19 154/346] crypto: omap-aes - Fix PM disable depth imbalance in omap_aes_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit ff8107200367f4abe0e5bce66a245e8d0f2d229e ] The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context. Fixes: f7b2b5dd6a62a ("crypto: omap-aes - add error ch

[PATCH 4.19 155/346] spi: fix resource leak for drivers without .remove callback

2020-12-28 Thread Greg Kroah-Hartman
From: Uwe Kleine-König [ Upstream commit 440408dbadfe47a615afd0a0a4a402e629be658a ] Consider an spi driver with a .probe but without a .remove callback (e.g. rtc-ds1347). The function spi_drv_probe() is called to bind a device and so dev_pm_domain_attach() is called. As there is no remove callba

[PATCH 4.19 181/346] PCI: Fix overflow in command-line resource alignment requests

2020-12-28 Thread Greg Kroah-Hartman
From: Colin Ian King [ Upstream commit cc73eb321d246776e5a9f7723d15708809aa3699 ] The shift of 1 by align_order is evaluated using 32 bit arithmetic and the result is assigned to a resource_size_t type variable that is a 64 bit unsigned integer on 64 bit platforms. Fix an overflow before widenin

[PATCH 4.19 179/346] genirq/irqdomain: Dont try to free an interrupt that has no mapping

2020-12-28 Thread Greg Kroah-Hartman
From: Marc Zyngier [ Upstream commit 4615fbc3788ddc8e7c6d697714ad35a53729aa2c ] When an interrupt allocation fails for N interrupts, it is pretty common for the error handling code to free the same number of interrupts, no matter how many interrupts have actually been allocated. This may result

[PATCH 4.19 164/346] orinoco: Move context allocation after processing the skb

2020-12-28 Thread Greg Kroah-Hartman
From: Sebastian Andrzej Siewior [ Upstream commit a31eb615646a63370aa1da1053c45439c7653d83 ] ezusb_xmit() allocates a context which is leaked if orinoco_process_xmit_skb() returns an error. Move ezusb_alloc_ctx() after the invocation of orinoco_process_xmit_skb() because the context is not need

[PATCH 4.19 152/346] powerpc/feature: Fix CPU_FTRS_ALWAYS by removing CPU_FTRS_GENERIC_32

2020-12-28 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit 78665179e569c7e1fe102fb6c21d0f5b6951f084 ] On 8xx, we get the following features: [0.00] cpu_features = 0x0100 [0.00] possible= 0x0120 [0.00] always = 0x This is n

[PATCH 4.19 168/346] platform/x86: mlx-platform: Remove PSU EEPROM from default platform configuration

2020-12-28 Thread Greg Kroah-Hartman
From: Vadim Pasternak [ Upstream commit 2bf5046bdb649908df8bcc0a012c56eee931a9af ] Remove PSU EEPROM configuration for systems class equipped with Mellanox chip Spectrum and Celeron CPU - system types MSN2700, MSN2100. Till now all the systems from this class used few types of power units, all e

[PATCH 4.19 118/346] drm/msm/dsi_pll_10nm: restore VCO rate during restore_state

2020-12-28 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov [ Upstream commit a4ccc37693a271330a46208afbeaed939d54fdbb ] PHY disable/enable resets PLL registers to default values. Thus in addition to restoring several registers we also need to restore VCO rate settings. Signed-off-by: Dmitry Baryshkov Fixes: c6659785dfb3 ("drm/ms

[PATCH 4.19 173/346] slimbus: qcom-ngd-ctrl: Avoid sending power requests without QMI

2020-12-28 Thread Greg Kroah-Hartman
From: Bjorn Andersson [ Upstream commit 39014ce6d6028614a46395923a2c92d058b6fa87 ] Attempting to send a power request during PM operations, when the QMI handle isn't initialized results in a NULL pointer dereference. So check if the QMI handle has been initialized before attempting to post the p

[PATCH 4.19 166/346] dmaengine: mv_xor_v2: Fix error return code in mv_xor_v2_probe()

2020-12-28 Thread Greg Kroah-Hartman
From: Zhihao Cheng [ Upstream commit c95e6515a8c065862361f7e0e452978ade7f94ec ] Return the corresponding error code when first_msi_entry() returns NULL in mv_xor_v2_probe(). Fixes: 19a340b1a820430 ("dmaengine: mv_xor_v2: new driver") Reported-by: Hulk Robot Signed-off-by: Zhihao Cheng Link: h

Re: [PATCH v2 3/4] i3c: master: svc: Add Silvaco I3C master driver

2020-12-28 Thread Miquel Raynal
Hi Boris, It's been quite some time since you made this review, but now that I am ready to send a new version, I think it is useful to answer your questions and remarks below which I pretty much all addressed with significant changes. Also adding Alexandre so he can smoothly get into this driver

[PATCH 4.19 161/346] memstick: fix a double-free bug in memstick_check

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit e3e9ced5c93803d5b2ea1942c4bf0192622531d6 ] kfree(host->card) has been called in put_device so that another kfree would raise cause a double-free bug. Fixes: 0193383a5833 ("memstick: core: fix device_register() error handling") Reported-by: Hulk Robot Signe

[PATCH 4.19 149/346] Input: ads7846 - fix unaligned access on 7845

2020-12-28 Thread Greg Kroah-Hartman
From: Dmitry Torokhov [ Upstream commit 03e2c9c782f721b661a0e42b1b58f394b5298544 ] req->sample[1] is not naturally aligned at word boundary, and therefore we should use get_unaligned_be16() when accessing it. Fixes: 3eac5c7e44f3 ("Input: ads7846 - extend the driver for ads7845 controller suppo

[PATCH 4.19 148/346] Input: ads7846 - fix integer overflow on Rt calculation

2020-12-28 Thread Greg Kroah-Hartman
From: Oleksij Rempel [ Upstream commit 820830ec918f6c3dcd77a54a1c6198ab57407916 ] In some rare cases the 32 bit Rt value will overflow if z2 and x is max, z1 is minimal value and x_plate_ohms is relatively high (for example 800 ohm). This would happen on some screen age with low pressure. There

[PATCH 4.19 127/346] spi: tegra20-sflash: fix reference leak in tegra_sflash_resume

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 3482e797ab688da6703fe18d8bad52f94199f4f2 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in tegra_sflash_resume, so we should fix it. Fixes: 8528547bcc336 ("spi: tegra: a

[PATCH 4.19 094/346] crypto: af_alg - avoid undefined behavior accessing salg_name

2020-12-28 Thread Greg Kroah-Hartman
From: Eric Biggers commit 92eb6c3060ebe3adf381fd9899451c5b047bb14d upstream. Commit 3f69cc60768b ("crypto: af_alg - Allow arbitrarily long algorithm names") made the kernel start accepting arbitrarily long algorithm names in sockaddr_alg. However, the actual length of the salg_name field stayed

[PATCH 4.19 163/346] ARM: dts: at91: sama5d3_xplained: add pincontrol for USB Host

2020-12-28 Thread Greg Kroah-Hartman
From: Cristian Birsan [ Upstream commit e1062fa7292f1e3744db0a487c4ac0109e09b03d ] The pincontrol node is needed for USB Host since Linux v5.7-rc1. Without it the driver probes but VBus is not powered because of wrong pincontrol configuration. Fixes: b7c2b61570798 ("ARM: at91: add Atmel's SAMA5

[PATCH 4.19 162/346] ARM: dts: at91: sama5d4_xplained: add pincontrol for USB Host

2020-12-28 Thread Greg Kroah-Hartman
From: Cristian Birsan [ Upstream commit be4dd2d448816a27c1446f8f37fce375daf64148 ] The pincontrol node is needed for USB Host since Linux v5.7-rc1. Without it the driver probes but VBus is not powered because of wrong pincontrol configuration. Fixes: 38153a017896f ("ARM: at91/dt: sama5d4: add d

[PATCH 4.19 131/346] ASoC: wm8998: Fix PM disable depth imbalance on error

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 193aa0a043645220d2a2f783ba06ae13d4601078 ] The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context. Fixes: 31833ead95c2c ("ASoC: arizona: Move request of

[PATCH 4.19 132/346] net: evaluate net.ipvX.conf.all.ignore_routes_with_linkdown

2020-12-28 Thread Greg Kroah-Hartman
From: Vincent Bernat [ Upstream commit c0c5a60f0f1311bcf08bbe735122096d6326fb5b ] Introduced in 0eeb075fad73, the "ignore_routes_with_linkdown" sysctl ignores a route whose interface is down. It is provided as a per-interface sysctl. However, while a "all" variant is exposed, it was a noop since

[PATCH 4.19 165/346] cw1200: fix missing destroy_workqueue() on error in cw1200_init_common

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit 7ec8a926188eb8e7a3cbaca43ec44f2d7146d71b ] Add the missing destroy_workqueue() before return from cw1200_init_common in the error handling case. Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets") Reported-by: Hulk Robot

Re: [PATCH v2 1/1] kasan: fix memory leak of kasan quarantine

2020-12-28 Thread Shinichiro Kawasaki
On Dec 17, 2020 / 20:18, Kuan-Ying Lee wrote: > When cpu is going offline, set q->offline as true > and interrupt happened. The interrupt may call the > quarantine_put. But quarantine_put do not free the > the object. The object will cause memory leak. > > Add qlink_free() to free the object. > >

[PATCH 4.19 146/346] drm/omap: dmm_tiler: fix return error code in omap_dmm_probe()

2020-12-28 Thread Greg Kroah-Hartman
From: Yang Yingliang [ Upstream commit 723ae803218da993143387bf966042eccefac077 ] Return -ENOMEM when allocating refill memory failed. Fixes: 71e8831f6407 ("drm/omap: DMM/TILER support for OMAP4+ platform") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang Signed-off-by: Thomas Zimmermann

[PATCH 4.19 126/346] spi: tegra20-slink: fix reference leak in slink ops of tegra20

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 763eab7074f6e71babd85d796156f05a675f9510 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in two callers(tegra_slink_setup and tegra_slink_resume), so we should fix it. Fi

[PATCH 4.19 085/346] ARM: dts: exynos: fix USB 3.0 VBUS control and over-current pins on Exynos5410

2020-12-28 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski commit 3d992fd8f4e0f09c980726308d2f2725587b32d6 upstream. The VBUS control (PWREN) and over-current pins of USB 3.0 DWC3 controllers are on Exynos5410 regular GPIOs. This is different than for example on Exynos5422 where these are special ETC pins with proper reset val

[PATCH v8 0/3] Introduce Embedded Controller driver for Acer A500

2020-12-28 Thread Dmitry Osipenko
This series adds support for the Embedded Controller which is found on Acer Iconia Tab A500 (Android tablet device). The Embedded Controller is ENE KB930 and it's running firmware customized for the A500. The firmware interface may be reused by some other sibling Acer tablets, although none of tho

[PATCH v8 3/3] power: supply: Add battery gauge driver for Acer Iconia Tab A500

2020-12-28 Thread Dmitry Osipenko
This patch adds battery gauge driver for Acer Iconia Tab A500 device. The battery gauge function is provided via the Embedded Controller, which is found on the Acer A500. Reviewed-by: Sebastian Reichel Signed-off-by: Dmitry Osipenko --- drivers/power/supply/Kconfig | 6 + drivers/

Re: [PATCH] ASoC: wm_adsp: Improve handling of raw byte streams

2020-12-28 Thread Mark Brown
On Wed, 16 Dec 2020 11:25:12 +, Richard Fitzgerald wrote: > As the register map is 16-bit or 32-bit big-endian, the 24-bit > DSP words appear padded and with the bytes swapped. When reading a > raw stream of bytes, the pad bytes must be removed and the data bytes > swapped back to their origina

[PATCH 4.19 144/346] media: solo6x10: fix missing snd_card_free in error handling case

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit dcdff74fa6bc00c32079d0bebd620764c26f2d89 ] Fix to goto snd_error in error handling case when fails to do snd_ctl_add, as done elsewhere in this function. Fixes: 28cae868cd24 ("[media] solo6x10: move out of staging into drivers/media/pci.") Reported-by: Hul

[PATCH 4.19 147/346] Input: ads7846 - fix race that causes missing releases

2020-12-28 Thread Greg Kroah-Hartman
From: David Jander [ Upstream commit e52cd628a03f72a547dbf90ccb703ee64800504a ] If touchscreen is released while busy reading HWMON device, the release can be missed. The IRQ thread is not started because no touch is active and BTN_TOUCH release event is never sent. Fixes: f5a28a7d4858f94a ("In

[PATCH 4.19 133/346] net: evaluate net.ipv4.conf.all.proxy_arp_pvlan

2020-12-28 Thread Greg Kroah-Hartman
From: Vincent Bernat [ Upstream commit 1af5318c00a8acc33a90537af49b3f23f72a2c4b ] Introduced in 65324144b50b, the "proxy_arp_vlan" sysctl is a per-interface sysctl to tune proxy ARP support for private VLANs. While the "all" variant is exposed, it was a noop and never evaluated. We use the usual

[PATCH 4.19 143/346] scsi: core: Fix VPD LUN ID designator priorities

2020-12-28 Thread Greg Kroah-Hartman
From: Martin Wilck [ Upstream commit 2e4209b3806cda9b89c30fd5e7bfecb7044ec78b ] The current implementation of scsi_vpd_lun_id() uses the designator length as an implicit measure of priority. This works most of the time, but not always. For example, some Hitachi storage arrays return this in VPD

[PATCH 4.19 120/346] selinux: fix inode_doinit_with_dentry() LABEL_INVALID error handling

2020-12-28 Thread Greg Kroah-Hartman
From: Paul Moore [ Upstream commit 200ea5a2292dc444a818b096ae6a32ba3caa51b9 ] A previous fix, commit 83370b31a915 ("selinux: fix error initialization in inode_doinit_with_dentry()"), changed how failures were handled before a SELinux policy was loaded. Unfortunately that patch was potentially p

<    1   2   3   4   5   6   7   8   9   10   >