diff options
author | James Smart <[email protected]> | 2017-09-21 08:13:49 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2017-09-25 12:42:11 -0600 |
commit | 8cbd96a6285e8eb65232b5afd3e8d9418453a61c (patch) | |
tree | b152e6d500ae8aa28866a80f9dd4d6dd893d11f0 /net/lapb | |
parent | f5c156c4c29a3d87176dd6e5c099388e187ec29b (diff) |
nvme: fix sqhd reference when admin queue connect fails
Fix bug in sqhd patch.
It wasn't the sq that was at risk. In the case where the admin queue
connect command fails, the sq->size field is not set. Therefore, this
becomes a divide by zero error.
Add a quick check to bypass under this failure condition.
Signed-off-by: James Smart <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions