]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tools/testing/nvdimm: stricter bounds checking for error injection commands
authorVishal Verma <vishal.l.verma@intel.com>
Tue, 7 Nov 2017 22:48:21 +0000 (15:48 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 8 Nov 2017 16:49:48 +0000 (08:49 -0800)
commit41cb3301c04d7f0b046ed296a34ef261c456dde8
treeb4f6a9caced93f32fbbea2f2d34f84332e9ad14f
parent5e096ef3b29e6113a7aa6a7dc4871987efa99bcb
tools/testing/nvdimm: stricter bounds checking for error injection commands

Ensure that the in/out sizes passed in the nd_cmd_package are sane for
the fixed output size commands (i.e. inject error and clear injected
error).

Reported-by: Dariusz Dokupil <dariusz.dokupil@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/nvdimm/test/nfit.c