block: sed-opal: handle empty atoms when parsing response block-6.8 block-6.8-2024-02-22
authorGreg Joyce <gjoyce@linux.ibm.com>
Fri, 16 Feb 2024 21:04:17 +0000 (15:04 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 16 Feb 2024 22:52:45 +0000 (15:52 -0700)
commit5429c8de56f6b2bd8f537df3a1e04e67b9c04282
treead3d9dfb0697ecfb40e425d82b51f7b529e59c74
parent15afd3d332b845b54ff09d7522b552457162fe7c
block: sed-opal: handle empty atoms when parsing response

The SED Opal response parsing function response_parse() does not
handle the case of an empty atom in the response. This causes
the entry count to be too high and the response fails to be
parsed. Recognizing, but ignoring, empty atoms allows response
handling to succeed.

Signed-off-by: Greg Joyce <gjoyce@linux.ibm.com>
Link: https://lore.kernel.org/r/20240216210417.3526064-2-gjoyce@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/opal_proto.h
block/sed-opal.c