linux-stable/drivers
Jiasheng Jiang 53ffa6a9f8 HID: amd_sfh: Add missing check for dma_alloc_coherent
Add check for the return value of the dma_alloc_coherent since
it may return NULL pointer if allocation fails.

Fixes: 4b2c53d93a ("SFH:Transport Driver to add support of AMD Sensor Fusion Hub (SFH)")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Acked-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20221220024921.21992-1-jiasheng@iscas.ac.cn
2022-12-20 09:45:53 +01:00
..
accel
accessibility
acpi iov_iter work; most of that is about getting rid of 2022-12-12 18:29:54 -08:00
amba
android
ata ata changes for 6.2 2022-12-13 10:54:19 -08:00
atm
auxdisplay
base regmap: Updates for v6.2 2022-12-13 12:44:40 -08:00
bcma
block for-6.2/block-2022-12-08 2022-12-13 10:43:59 -08:00
bluetooth Updates for timers, timekeeping and drivers: 2022-12-12 12:52:02 -08:00
bus Random number generator updates for Linux 6.2-rc1. 2022-12-12 16:22:22 -08:00
cdrom
char iov_iter work; most of that is about getting rid of 2022-12-12 18:29:54 -08:00
clk drm for 6.2: 2022-12-13 11:59:58 -08:00
clocksource Updates for timers, timekeeping and drivers: 2022-12-12 12:52:02 -08:00
comedi
connector
counter
cpufreq linux-kselftest-next-6.2-rc1 2022-12-12 16:39:38 -08:00
cpuidle
crypto
cxl cxl/region: Fix memdev reuse check 2022-12-08 13:03:47 -08:00
dax
dca
devfreq PM / devfreq: event: use devm_platform_get_and_ioremap_resource() 2022-12-05 21:57:20 +09:00
dio
dma
dma-buf drm for 6.2: 2022-12-13 11:59:58 -08:00
edac Merge branches 'edac-ghes' and 'edac-misc' into edac-updates-for-v6.2 2022-12-12 15:40:03 +01:00
eisa
extcon
firewire
firmware spi: Updates for v6.2 2022-12-13 12:54:31 -08:00
fpga
fsi
gnss
gpio Pin control changes for the v6.2 kernel cycle: 2022-12-13 13:03:06 -08:00
gpu drm for 6.2: 2022-12-13 11:59:58 -08:00
greybus
hid HID: amd_sfh: Add missing check for dma_alloc_coherent 2022-12-20 09:45:53 +01:00
hsi
hte
hv ACPI updates for 6.2-rc1 2022-12-12 13:38:17 -08:00
hwmon hwmon updates for v6.2 merge window 2022-12-13 13:09:38 -08:00
hwspinlock
hwtracing
i2c sound updates for 6.2-rc1 2022-12-13 11:27:26 -08:00
i3c
idle
iio Input updates for 6.2 merge window: 2022-12-13 13:20:36 -08:00
infiniband drm for 6.2: 2022-12-13 11:59:58 -08:00
input Input updates for 6.2 merge window: 2022-12-13 13:20:36 -08:00
interconnect
iommu dma-mapping updates for Linux 2.6 2022-12-13 09:05:19 -08:00
ipack
irqchip irqchip updates for 6.2 2022-12-07 17:50:44 +01:00
isdn
leds
macintosh
mailbox ACPI updates for 6.2-rc1 2022-12-12 13:38:17 -08:00
mcb
md - Fix use-after-free races due to missing resource cleanup during DM 2022-12-13 10:58:09 -08:00
media drm for 6.2: 2022-12-13 11:59:58 -08:00
memory drm for 6.2: 2022-12-13 11:59:58 -08:00
memstick
message
mfd
misc drm for 6.2: 2022-12-13 11:59:58 -08:00
mmc Random number generator updates for Linux 6.2-rc1. 2022-12-12 16:22:22 -08:00
most
mtd MTD core changes: 2022-12-13 12:32:07 -08:00
mux
net dma-mapping updates for Linux 2.6 2022-12-13 09:05:19 -08:00
nfc
ntb
nubus
nvdimm nvdimm/region: Move cache management to the region driver 2022-12-02 23:52:32 -08:00
nvme for-6.2/block-2022-12-08 2022-12-13 10:43:59 -08:00
nvmem SoC driver updates for 6.2 2022-12-12 10:17:08 -08:00
of Devicetree updates for v6.2: 2022-12-13 13:13:55 -08:00
opp
parisc
parport
pci for-6.2/block-2022-12-08 2022-12-13 10:43:59 -08:00
pcmcia
peci
perf Perf events updates for v6.2: 2022-12-12 15:19:38 -08:00
phy media updates for v6.2-rc1 2022-12-13 11:36:58 -08:00
pinctrl Pin control changes for the v6.2 kernel cycle: 2022-12-13 13:03:06 -08:00
platform regulator: Updates for v6.2 2022-12-13 12:49:59 -08:00
pnp
power
powercap powercap: idle_inject: Fix warnings with make W=1 2022-12-02 20:49:49 +01:00
pps
ps3
ptp
pwm
rapidio rapidio: devices: fix missing put_device in mport_cdev_open 2022-12-11 19:30:20 -08:00
ras
regulator regulator: Updates for v6.2 2022-12-13 12:49:59 -08:00
remoteproc
reset
rpmsg
rtc
s390 dma-mapping updates for Linux 2.6 2022-12-13 09:05:19 -08:00
sbus
scsi ata changes for 6.2 2022-12-13 10:54:19 -08:00
sh
siox
slimbus
soc Pin control changes for the v6.2 kernel cycle: 2022-12-13 13:03:06 -08:00
soundwire
spi spi: Updates for v6.2 2022-12-13 12:54:31 -08:00
spmi
ssb
staging drm for 6.2: 2022-12-13 11:59:58 -08:00
target
tc
tee SoC driver updates for 6.2 2022-12-12 10:17:08 -08:00
thermal Thermal control updates for 6.2-rc1 2022-12-12 13:45:21 -08:00
thunderbolt
tty printk changes for 6.2 2022-12-12 09:01:36 -08:00
ufs for-6.2/block-2022-12-08 2022-12-13 10:43:59 -08:00
uio
usb iov_iter work; most of that is about getting rid of 2022-12-12 18:29:54 -08:00
vdpa
vfio Updates for the interrupt core and driver subsystem: 2022-12-12 11:21:29 -08:00
vhost
video drm for 6.2: 2022-12-13 11:59:58 -08:00
virt Add TDX guest attestation infrastructure and driver 2022-12-12 14:27:49 -08:00
virtio
vlynq
w1
watchdog
xen drm for 6.2: 2022-12-13 11:59:58 -08:00
zorro
Kconfig
Makefile