From 82141783f82bb6867f068d357c78d8cebc20f317 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 24 Jun 2010 18:21:54 +0000 Subject: [PATCH] Patch from Ido Benda 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 --- scst/src/scst_pres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_pres.c b/scst/src/scst_pres.c index a18757a21..d4196340f 100644 --- a/scst/src/scst_pres.c +++ b/scst/src/scst_pres.c @@ -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);