]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
libnvdimm, tools/testing/nvdimm: fix 'ars_status' output buffer sizing
authorDan Williams <dan.j.williams@intel.com>
Fri, 19 Feb 2016 23:21:14 +0000 (15:21 -0800)
committerDan Williams <dan.j.williams@intel.com>
Fri, 19 Feb 2016 23:21:52 +0000 (15:21 -0800)
commit747ffe11b440ef9ea752888806d3aac677ca52a4
tree0f96d8b4c4ef887294ab8be03621053b961d9ee2
parent6697b2cf69d4363266ca47eaebc49ef13dabc1c9
libnvdimm, tools/testing/nvdimm: fix 'ars_status' output buffer sizing

Use the output length specified in the command to size the receive
buffer rather than the arbitrary 4K limit.

This bug was hiding the fact that the ndctl implementation of
ndctl_bus_cmd_new_ars_status() was not specifying an output buffer size.

Cc: <stable@vger.kernel.org>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit.c
drivers/nvdimm/bus.c
include/linux/libnvdimm.h
tools/testing/nvdimm/test/nfit.c