mbox series

[-next,v2,0/3] spi: microchip-core: fix and cleanups

Message ID 20220713025657.3524506-1-yangyingliang@huawei.com
Headers show
Series spi: microchip-core: fix and cleanups | expand

Message

Yang Yingliang July 13, 2022, 2:56 a.m. UTC
Patch #1 fix a UAF in mchp_corespi_remove().
Patch #2 and #3 some cleanups to simpify code.

v1 -> v2:
  add patch #3 to use dev_err_probe to simpify code.

Yang Yingliang (3):
  spi: microchip-core: fix UAF in mchp_corespi_remove()
  spi: microchip-core: switch to use devm_spi_alloc_master()
  spi: microchip-core: switch to use dev_err_probe()

 drivers/spi/spi-microchip-core.c | 56 ++++++++++++--------------------
 1 file changed, 20 insertions(+), 36 deletions(-)