diff options
author | Dave Jiang <dave.jiang@intel.com> | 2025-09-23 10:40:13 -0700 |
---|---|---|
committer | Ira Weiny <ira.weiny@intel.com> | 2025-09-25 12:40:11 -0500 |
commit | 88506435d9d4148e31341a2be9492004df9f7611 (patch) | |
tree | 705f74c33475245891a0c72c3081440f9d113f9c /drivers/infiniband/hw/ionic/ionic_controlpath.c | |
parent | 0020839be034cf1c57ebdf8af8c9e4f697055db6 (diff) |
nvdimm: Clean up __nd_ioctl() and remove gotos
Utilize scoped based resource management to clean up the code and
and remove gotos for the __nd_ioctl() function.
Change allocation of 'buf' to use kvzalloc() in order to use
vmalloc() memory when needed and also zero out the allocated
memory.
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Diffstat (limited to 'drivers/infiniband/hw/ionic/ionic_controlpath.c')
0 files changed, 0 insertions, 0 deletions