android_kernel_motorola_sm6375/drivers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andy Shevchenko cec562fbf8 ocfs2/dlm: move BITS_TO_BYTES() to bitops.h for wider use
[ Upstream commit dd3e7cba16274831f5a69f071ed3cf13ffb352ea ]

There are users already and will be more of BITS_TO_BYTES() macro.  Move
it to bitops.h for wider use.

In the case of ocfs2 the replacement is identical.

As for bnx2x, there are two places where floor version is used.  In the
first case to calculate the amount of structures that can fit one memory
page.  In this case obviously the ceiling variant is correct and
original code might have a potential bug, if amount of bits % 8 is not
0.  In the second case the macro is used to calculate bytes transmitted
in one microsecond.  This will work for all speeds which is multiply of
1Gbps without any change, for the rest new code will give ceiling value,
for instance 100Mbps will give 13 bytes, while old code gives 12 bytes
and the arithmetically correct one is 12.5 bytes.  Further the value is
used to setup timer threshold which in any case has its own margins due
to certain resolution.  I don't see here an issue with slightly shifting
thresholds for low speed connections, the card is supposed to utilize
highest available rate, which is usually 10Gbps.

Link: http://lkml.kernel.org/r/20200108121316.22411-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Acked-by: Sudarsana Reddy Kalluru <skalluru@marvell.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Stable-dep-of: f4e4534850a9 ("net/netlink: fix NETLINK_LIST_MEMBERSHIPS length report")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-09 10:28:54 +02:00
..
accessibility
acpi ACPICA: ACPICA: check null return of ACPI_ALLOCATE_ZEROED in acpi_db_display_objects 2023-05-30 12:44:02 +01:00
amba
android binder: fix UAF caused by faulty buffer cleanup 2023-06-05 08:17:33 +02:00
ata ata: libata: Fix sata_down_spd_limit() when no link speed is reported 2023-02-22 12:50:24 +01:00
atm atm: idt77252: fix kmemleak when rmmod idt77252 2023-04-05 11:16:37 +02:00
auxdisplay
base regmap: cache: Return error in cache sync operations for REGCACHE_NONE 2023-05-30 12:44:02 +01:00
bcma
block drbd: correctly submit flush bio on barrier 2023-05-17 11:36:04 +02:00
bluetooth Revert "Bluetooth: btsdio: fix use after free bug in btsdio_remove due to unfinished work" 2023-05-17 11:35:45 +02:00
bus bus: imx-weim: fix branch condition evaluates to a garbage value 2023-04-05 11:16:42 +02:00
cdrom
char tpm/tpm_tis: Disable interrupts for more Lenovo devices 2023-05-30 12:44:07 +01:00
clk clk: tegra20: fix gcc-7 constant overflow warning 2023-05-30 12:44:04 +01:00
clocksource clocksource/drivers/davinci: Fix memory leak in davinci_timer_register when init fails 2023-05-17 11:35:53 +02:00
connector
counter counter: 104-quad-8: Fix race condition between FLAG and CNTR reads 2023-05-17 11:35:31 +02:00
cpufreq cpufreq: armada-37xx: stop using 0 as NULL pointer 2023-02-06 07:52:41 +01:00
cpuidle
crypto crypto: safexcel - Cleanup ring IRQ workqueues on load failure 2023-05-17 11:35:58 +02:00
dax
dca
devfreq PM/devfreq: governor: Add a private governor_data for governor 2023-01-18 11:41:52 +01:00
dio drivers: dio: fix possible memory leak in dio_init() 2023-01-18 11:41:21 +01:00
dma dmaengine: pl330: rename _start to prevent build error 2023-06-09 10:28:52 +02:00
dma-buf
edac EDAC/skx: Fix overflows on the DRAM row address mapping arrays 2023-05-17 11:35:35 +02:00
eisa
extcon
firewire firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region 2023-02-22 12:50:22 +01:00
firmware firmware: arm_sdei: Fix sleep from invalid context BUG 2023-05-30 12:44:02 +01:00
fpga fpga: bridge: fix kernel-doc parameter description 2023-05-17 11:35:46 +02:00
fsi WRITE is "data source", not destination... 2023-02-22 12:50:23 +01:00
gnss
gpio gpio: mockup: Fix mode of debugfs files 2023-05-30 12:44:09 +01:00
gpu drm/exynos: fix g2d_open/close helper function definitions 2023-05-30 12:44:05 +01:00
greybus
hid HID: wacom: add three styli to wacom_intuos_get_tool_type 2023-05-30 12:44:08 +01:00
hsi HSI: omap_ssi_core: Fix error handling in ssi_init() 2023-01-18 11:41:28 +01:00
hv
hwmon hwmon (it87): Fix voltage scaling for chips with 10.9mV ADCs 2023-04-05 11:16:38 +02:00
hwspinlock
hwtracing coresight: Fix signedness bug in tmc_etr_buf_insert_barrier_packet() 2023-05-30 12:44:10 +01:00
i2c i2c: omap: Fix standard mode false ACK readings 2023-05-17 11:35:33 +02:00
i3c
ide
idle
iio iio: light: max44009: add missing OF device matching 2023-05-17 11:35:46 +02:00
infiniband RDMA/bnxt_re: Fix return value of bnxt_re_process_raw_qp_pkt_rx 2023-06-09 10:28:52 +02:00
input Input: xpad - add constants for GIP interface numbers 2023-05-30 12:44:04 +01:00
interconnect interconnect: fix mem leak when freeing nodes 2023-03-22 13:28:08 +01:00
iommu iommu/amd: Don't block updates to GATag if guest mode is on 2023-06-09 10:28:52 +02:00
ipack
irqchip irqchip/irq-bcm7120-l2: Set IRQ_LEVEL for level triggered interrupts 2023-03-11 16:43:43 +01:00
isdn mISDN: hfcmulti: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave() 2023-01-18 11:41:32 +01:00
leds leds: TI_LMU_COMMON: select REGMAP instead of depending on it 2023-05-17 11:35:53 +02:00
lightnvm
macintosh macintosh: via-pmu-led: requires ATA to be set 2023-05-17 11:35:50 +02:00
mailbox mailbox: zynqmp: Fix counts of child nodes 2023-05-17 11:35:57 +02:00
mcb mcb-pci: Reallocate memory region to avoid memory overlapping 2023-05-30 12:44:04 +01:00
md dm verity: fix error handling for check_at_most_once on FEC 2023-05-17 11:35:57 +02:00
media media: radio-shark: Add endpoint checks 2023-05-30 12:44:10 +01:00
memory memory: mvebu-devbus: Fix missing clk_disable_unprepare in mvebu_devbus_probe() 2023-02-06 07:52:34 +01:00
memstick memstick: r592: Fix UAF bug in r592_remove due to race condition 2023-05-30 12:44:02 +01:00
message scsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition 2023-05-30 12:44:03 +01:00
mfd mfd: dln2: Fix memory leak in dln2_probe() 2023-05-30 12:44:04 +01:00
misc vmci_host: fix a race condition in vmci_host_poll() causing GPF 2023-05-17 11:35:47 +02:00
mmc mmc: sdhci-of-esdhc: fix quirk to ignore command inhibit for data 2023-05-17 11:35:37 +02:00
mtd mtd: rawnand: ingenic: fix empty stub helper definitions 2023-06-09 10:28:53 +02:00
mux
net ocfs2/dlm: move BITS_TO_BYTES() to bitops.h for wider use 2023-06-09 10:28:54 +02:00
nfc nfc: st-nci: Fix use after free bug in ndlc_remove due to race condition 2023-03-22 13:28:05 +01:00
ntb
nubus
nvdimm
nvme nvme-fcloop: fix "inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage" 2023-05-17 11:35:43 +02:00
nvmem nvmem: core: fix cell removal on error 2023-02-22 12:50:28 +01:00
of of: Fix modalias string generation 2023-05-17 11:35:47 +02:00
opp OPP: fix error checking in opp_migrate_dentry() 2023-03-11 16:43:41 +01:00
oprofile
parisc parisc: led: Fix potential null-ptr-deref in start_task() 2023-01-18 11:41:50 +01:00
parport
pci PCI: pciehp: Fix AB-BA deadlock between reset_lock and device_lock 2023-05-17 11:36:04 +02:00
pcmcia
perf
phy phy: st: miphy28lp: use _poll_timeout functions for waits 2023-05-30 12:44:04 +01:00
pinctrl Revert "pinctrl: amd: Disable and mask interrupts on resume" 2023-04-20 12:07:35 +02:00
platform platform/x86: touchscreen_dmi: Add info for the Dexp Ursus KX210i 2023-05-17 11:36:01 +02:00
pnp
power power: supply: bq24190: Call power_supply_changed() after updating input current 2023-06-05 08:17:32 +02:00
powercap powercap: fix possible name leak in powercap_register_zone() 2023-03-11 16:43:40 +01:00
pps
ps3
ptp ptp_qoriq: fix memory leak in probe() 2023-04-05 11:16:43 +02:00
pwm pwm: mtk-disp: Disable shadow registers before setting backlight values 2023-05-17 11:35:53 +02:00
rapidio
ras
regulator regulator: stm32-pwr: fix of_iomap leak 2023-05-17 11:35:38 +02:00
remoteproc remoteproc: st: Call of_node_put() on iteration error 2023-05-17 11:36:01 +02:00
reset
rpmsg rpmsg: glink: Avoid infinite loop on intent for missing channel 2023-03-11 16:43:53 +01:00
rtc rtc: meson-vrtc: Use ktime_get_real_ts64() to get the current time 2023-05-17 11:35:51 +02:00
s390 s390/qdio: fix do_sqbs() inline assembly constraint 2023-05-30 12:44:08 +01:00
sbus
scsi scsi: lpfc: Prevent lpfc_debugfs_lockstat_write() buffer overflow 2023-05-30 12:44:02 +01:00
sfi
sh
siox
slimbus
soc ARM: ux500: do not directly dereference __iomem 2023-01-18 11:41:46 +01:00
soundwire
spi spi: fsl-cpm: Use 16 bit mode for large transfers with even size 2023-05-30 12:44:08 +01:00
spmi spmi: Add a check for remove callback when removing a SPMI driver 2023-05-17 11:35:49 +02:00
ssb
staging staging: rtl8192e: Replace macro RTL_PCI_DEVICE with PCI_DEVICE 2023-05-30 12:44:03 +01:00
target scsi: target: iscsit: Free cmds before session free 2023-05-30 12:44:03 +01:00
tc
tee
thermal thermal: intel: BXT_PMIC: select REGMAP instead of depending on it 2023-03-11 16:44:13 +01:00
thunderbolt thunderbolt: Use const qualifier for ring_interrupt_index 2023-04-05 11:16:39 +02:00
tty vc_screen: reload load of struct vc_data pointer in vcs_write() to avoid UAF 2023-05-30 12:44:08 +01:00
uio uio: uio_dmem_genirq: Fix deadlock between irq config and handling 2023-01-18 11:41:22 +01:00
usb USB: sisusbvga: Add endpoint checks 2023-05-30 12:44:10 +01:00
vfio vfio: platform: Do not pass return buffer to ACPI _RST method 2023-01-18 11:41:22 +01:00
vhost vhost: fix range used in translate_desc() 2023-01-18 11:41:57 +01:00
video fbdev: udlfb: Fix endpoint check 2023-05-30 12:44:09 +01:00
virt
virtio
visorbus
vlynq
vme vme: Fix error not catched in fake_init() 2023-01-18 11:41:26 +01:00
w1 w1: fix WARNING after calling w1_process() 2023-02-06 07:52:40 +01:00
watchdog watchdog: sp5100_tco: Immediately trigger upon starting. 2023-05-30 12:44:08 +01:00
xen xen/pvcalls-back: fix double frees with pvcalls_new_active_socket() 2023-05-30 12:44:10 +01:00
zorro
Kconfig
Makefile