Watch
1
Fork
You've already forked kernel_a52xq
0
mirror of https://github.com/a52xq-dev/kernel.git synced 2026-10-18 21:58:11 +07:00
kernel_a52xq/drivers/fsi
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jeremy Kerr 67a358b01e fsi/core: Fix error paths on CFAM init
[ Upstream commit 371975b0b07520c85098652d561639837a60a905 ]

Change d1dcd67825 re-worked the struct fsi_slave initialisation in
fsi_slave_init, but introduced a few inconsitencies: the slave->dev is
now registered through cdev_device_add, but we may kfree() the device
out from underneath the cdev registration. We may also leave an IDA
allocated.

This change fixes the error paths, so that we kfree() only before the
device is registered with the core code. We also move the smode write to
before we start creating proper devices, as it's the most likely to
fail. We also remove the IDA-allocated minor on error, and properly
clean up the of_node.

Fixes: d1dcd67825 ("fsi: Add cfam char devices")
Reported-by: Lei YU <mine260309@gmail.com>
Tested-by: John Wang <wangzqbj@inspur.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:51:00 +01:00
..
cf-fsi-fw.h fsi: master-ast-cf: Add new FSI master using Aspeed ColdFire 2018-07-23 15:22:52 +10:00
fsi-core.c fsi/core: Fix error paths on CFAM init 2020-01-27 14:51:00 +01:00
fsi-master-ast-cf.c fsi: master-ast-cf: Rename dump_trace() to avoid name collision 2018-07-26 14:49:50 +10:00
fsi-master-gpio.c fsi: Move various master definitions to a common header 2018-07-12 12:06:02 +10:00
fsi-master-hub.c fsi: master-hub: Fix sparse warnings 2018-06-18 14:33:56 +10:00
fsi-master.h fsi: Prevent multiple concurrent rescans 2018-07-27 09:58:12 +10:00
fsi-sbefifo.c fsi: sbefifo: Bump max command length 2018-08-08 15:44:47 +10:00
fsi-scom.c fsi: scom: Don't abort operations for minor errors 2019-09-06 10:22:19 +02:00
Kconfig fsi: master-ast-cf: select GENERIC_ALLOCATOR 2018-12-17 09:24:35 +01:00
Makefile fsi: master-ast-cf: Add new FSI master using Aspeed ColdFire 2018-07-23 15:22:52 +10:00