aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/pci/tw686x/tw686x-video.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2018-08-21 11:53:03 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-29 03:06:07 -0700
commit97513162cd6d7ed118aa155b4196e88b3e43ff69 (patch)
tree8376af9a20b315673bfb844e17a5b974dcfdc19d /drivers/media/pci/tw686x/tw686x-video.c
parented5e9462f6617a85945353abe5c4b94a81ee01a1 (diff)
spi: Fix double IDR allocation with DT aliases
commit 04b2d03a75652bda989de1595048f0501dc0c0a0 upstream. If the SPI bus number is provided by a DT alias, idr_alloc() is called twice, leading to: WARNING: CPU: 1 PID: 1 at drivers/spi/spi.c:2179 spi_register_controller+0x11c/0x5d8 couldn't get idr Fix this by moving the handling of fixed SPI bus numbers up, before the DT handling code fills in ctlr->bus_num. Fixes: 1a4327fbf4554d5b ("spi: fix IDR collision on systems with both fixed and dynamic SPI bus numbers") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Tested-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Cc: Kirill Kapranov <kirill.kapranov@compulab.co.il> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media/pci/tw686x/tw686x-video.c')
0 files changed, 0 insertions, 0 deletions