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:
Vladislav Bolkhovitin
2010-06-24 18:21:54 +00:00
parent eb16bf9163
commit 82141783f8

View File

@@ -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);