2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 05:04:00 +08:00
linux-next/drivers/soc/fsl/qbman
Alexandre Belloni 64e9e22e68 soc: fsl: qbman: qman: avoid allocating from non existing gen_pool
If the qman driver didn't probe, calling qman_alloc_fqid_range,
qman_alloc_pool_range or qman_alloc_cgrid_range (as done in dpaa_eth) will
pass a NULL pointer to gen_pool_alloc, leading to a NULL pointer
dereference.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Roy Pledge <roy.pledge@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
(cherry picked from commit f72487a2788aa70c3aee1d0ebd5470de9bac953a)
Signed-off-by: Olof Johansson <olof@lixom.net>
2018-09-25 13:57:25 -07:00
..
bman_ccsr.c soc/fsl/qbman: Use shared-dma-pool for BMan private memory allocations 2017-09-22 13:33:07 -05:00
bman_portal.c soc/fsl/qbman: Rework portal mapping calls for ARM/PPC 2017-09-22 13:33:07 -05:00
bman_priv.h soc/fsl/qbman: Rework portal mapping calls for ARM/PPC 2017-09-22 13:33:07 -05:00
bman_test_api.c soc/bman: Add self-test for BMan driver 2016-09-25 02:38:59 -05:00
bman_test.c soc/bman: Add self-test for BMan driver 2016-09-25 02:38:59 -05:00
bman_test.h soc/bman: Add self-test for BMan driver 2016-09-25 02:38:59 -05:00
bman.c soc/fsl/qbman: different register offsets on ARM 2017-09-22 13:33:07 -05:00
dpaa_sys.c soc/fsl/qbman: Add common routine for QBMan private allocations 2017-09-22 13:33:07 -05:00
dpaa_sys.h soc/fsl/qbman: Add missing headers on ARM 2017-09-22 13:33:07 -05:00
Kconfig soc: fsl: cleanup Kconfig menu 2018-07-24 16:19:16 -05:00
Makefile ARM: SoC driver updates for v4.15 2017-11-16 16:05:01 -08:00
qman_ccsr.c soc/fsl/qbman: add QMAN_REV32 2017-09-22 13:33:07 -05:00
qman_portal.c soc/fsl/qbman: Rework portal mapping calls for ARM/PPC 2017-09-22 13:33:07 -05:00
qman_priv.h soc/fsl/qbman: add QMAN_REV32 2017-09-22 13:33:07 -05:00
qman_test_api.c soc/qman: Handle endianness of h/w descriptors 2016-11-23 21:01:25 -06:00
qman_test_stash.c soc/fsl/qman: test: use DEFINE_SPINLOCK() 2016-12-09 23:08:52 -06:00
qman_test.c soc/qman: Add self-test for QMan driver 2016-09-25 02:39:00 -05:00
qman_test.h soc/fsl/qbman: Use shared-dma-pool for QMan private memory allocations 2017-09-22 13:33:07 -05:00
qman.c soc: fsl: qbman: qman: avoid allocating from non existing gen_pool 2018-09-25 13:57:25 -07:00