]> www.infradead.org Git - users/hch/nvme-cli.git/commit
get-features: Don't try to read the data buffer for sel == 3
authorAndy Lutomirski <luto@kernel.org>
Thu, 1 Sep 2016 15:27:48 +0000 (08:27 -0700)
committerAndy Lutomirski <luto@kernel.org>
Wed, 1 Feb 2017 18:13:55 +0000 (10:13 -0800)
commit8876353b73a3fbadf51978ed3ec630b3ac1d23f2
tree44e8fdf71f4d8d855f61f584051b6b2a780de448
parent31d34552f3fdfcbca2c18ea2753f1ad805ef1439
get-features: Don't try to read the data buffer for sel == 3

When sel == 3, the controller returns capabilities in the completion
entry and does not produce a feature value blob.  Stop allocating
space for the blob and displaying it -- the result is garbage.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
nvme.c