linux-stable/drivers/dax
Zhen Lei ff8da37d3d device-dax: Avoid an unnecessary check in alloc_dev_dax_range()
Swap the calling sequence of krealloc() and __request_region(), call the
latter first. In this way, the value of dev_dax->nr_range does not need to
be considered when __request_region() failed.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20201219081840.1149-2-thunder.leizhen@huawei.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2020-12-24 10:06:57 -08:00
..
hmem dax/hmem: introduce dax_hmem.region_idle parameter 2020-10-13 18:38:28 -07:00
pmem device-dax/pmem: Convert comma to semicolon 2020-12-15 21:58:57 -08:00
bus.c device-dax: Avoid an unnecessary check in alloc_dev_dax_range() 2020-12-24 10:06:57 -08:00
bus.h mm/memremap_pages: convert to 'struct range' 2020-10-13 18:38:28 -07:00
dax-private.h device-dax: add an 'align' attribute 2020-10-13 18:38:28 -07:00
device.c device-dax: make align a per-device property 2020-10-13 18:38:28 -07:00
Kconfig ACPI: HMAT: attach a device for each soft-reserved range 2020-10-13 18:38:28 -07:00
kmem.c mm/memory_hotplug: prepare passing flags to add_memory() and friends 2020-10-16 11:11:18 -07:00
Makefile ACPI: HMAT: refactor hmat_register_target_device to hmem_register_device 2020-10-13 18:38:27 -07:00
super.c device-dax/core: Fix memory leak when rmmod dax.ko 2020-12-15 22:03:52 -08:00