summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-06-20 13:41:51 +0300
committerJens Axboe <axboe@kernel.dk>2018-06-20 12:04:06 -0600
commitce042c183bcb94eb2919e8036473a1fc203420f9 (patch)
treecc88e5d4ee53d4aee85e5607b1e98a9dae5de2cf /fs
parenta1e79188628580465ac6d7a93a313336ee3364f1 (diff)
downloadlinux-stable-ce042c183bcb94eb2919e8036473a1fc203420f9.tar.gz
linux-stable-ce042c183bcb94eb2919e8036473a1fc203420f9.tar.bz2
linux-stable-ce042c183bcb94eb2919e8036473a1fc203420f9.zip
block: sed-opal: Fix a couple off by one bugs
resp->num is the number of tokens in resp->tok[]. It gets set in response_parse(). So if n == resp->num then we're reading beyond the end of the data. Fixes: 455a7b238cd6 ("block: Add Sed-opal library") Reviewed-by: Scott Bauer <scott.bauer@intel.com> Tested-by: Scott Bauer <scott.bauer@intel.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions