]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - block/sed-opal.c
block: sed-opal: fix response string extraction
authorJonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>
Thu, 1 Mar 2018 13:26:37 +0000 (14:26 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Mar 2018 00:55:46 +0000 (17:55 -0700)
commitd15e1175a9a9af967ae01245f55196acb5d5ff0f
treef587226a7a7e328ff780e800f289784cbd860274
parent66231ad3e2886ba99fbf440cea44cab547e5163f
block: sed-opal: fix response string extraction

Tokens are prefixed by a variable length of bytes. If a bytestring is
not stored in an tiny or short atom, we have to skip more than one byte
in order to have the actual bytes not prefixed by the bytes describing
the actual length of the string.

Acked-by: Jonathan Derrick <jonathan.derrick@intel.com>
Signed-off-by: Jonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/sed-opal.c