Unverified Commit 38d70d3e authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!2783 Add error handle for add_disk

Merge Pull Request from: @ci-robot 
 
PR sync from: Li Nan <linan122@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/SW7XZX2OMWT6AZ2X4U3FB27GUFXHTWPU/ 
To make applying the mainline patch easier, reorder the nbd commit about
the first_minor check here.

Christoph Hellwig (5):
  block: fold register_disk into device_add_disk
  block: call blk_integrity_add earlier in device_add_disk
  block: add the events* attributes to disk_attrs
  block: fix error unwinding in device_add_disk
  block: clear ->slave_dir when dropping the main slave_dir reference

Luis Chamberlain (4):
  block: return errors from blk_integrity_add
  block: return errors from disk_alloc_events
  block: add error handling for device_add_disk / add_disk
  block: fix device_add_disk() kobject_create_and_add() error handling

Tetsuo Handa (1):
  block: check minor range in device_add_disk()

Wen Yang (1):
  Revert "Revert "block: nbd: add sanity check for first_minor""

Yu Kuai (3):
  nbd: fix max value for 'first_minor'
  nbd: fix possible overflow for 'first_minor' in nbd_dev_add()
  block: fix memory leak for elevator on add_disk failure

Zhang Wensheng (1):
  nbd: fix possible overflow on 'first_minor' in nbd_dev_add()

Zhong Jinghua (7):
  nbd: Reorganize the messy commit log about the first_minor check
  block: return errors from blk_register_region
  block: Fix the kabi change in device_add_disk
  block: Fix the kabi change on blk_register_region
  block: call blk_get_queue earlier in __device_add_disk
  block: Fix minor range check in device_add_disk()
  block: Set memalloc_noio to false in the error path


-- 
2.39.2
 
 
 
Link:https://gitee.com/openeuler/kernel/pulls/2783

 

Reviewed-by: default avatarYu Kuai <yukuai3@huawei.com>
Reviewed-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents 8ab53135 e638776f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment