]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit59e9f1a99d8492e59b239f6b49a055896a2079a0
treef587226a7a7e328ff780e800f289784cbd860274
parentda841158cad8ceed7db3d9f4bb31db10f7b7269e
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