mbox series

[v2,0/4] ata: libata-transport: fix some error handing

Message ID 20221108075209.2434888-1-yangyingliang@huawei.com
Headers show
Series ata: libata-transport: fix some error handing | expand

Message

Yang Yingliang Nov. 8, 2022, 7:52 a.m. UTC
patch #1 fix a null-ptr-deref problem that caused by double put refcount.

patch #2 ~ #4 handle error case of transport_add_device(), if it's
ignored, it will lead kernel crash because of trying to delete not
added device in transport_remove_device().

v1 -> v2:
  Update commit message that suggested by Damien.

Yang Yingliang (4):
  ata: libata-transport: fix double ata_host_put() in ata_tport_add()
  ata: libata-transport: fix error handling in ata_tport_add()
  ata: libata-transport: fix error handling in ata_tlink_add()
  ata: libata-transport: fix error handling in ata_tdev_add()

 drivers/ata/libata-transport.c | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)