mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 12:41:26 +00:00
Patch from Ido Benda <Ido.Benda@kaminario.com> fixing a small bug in PR read keys which causes the last key to be omitted.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1782 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2537,7 +2537,7 @@ void scst_pr_read_keys(struct scst_cmd *cmd, uint8_t *buffer, int buffer_size)
|
||||
i = 0;
|
||||
list_for_each_entry(reg, &dev->dev_registrants_list,
|
||||
dev_registrants_list_entry) {
|
||||
if (size_max - size > 8) {
|
||||
if (size_max - size >= 8) {
|
||||
TRACE_PR("Read Keys (dev %s): key 0x%llx",
|
||||
dev->virt_name, reg->key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user