Dave Jiang wrote: > 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 <[email protected]> > --- > drivers/nvdimm/bus.c | 65 +++++++++++++++----------------------------- > 1 file changed, 22 insertions(+), 43 deletions(-)
Looks good, nice cleanup. Reviewed-by: Dan Williams <[email protected]>
