On 02/24/2014 06:24 PM, Mike Christie wrote: > Both patches look ok to me. Will merge later if no one has objections. > Thanks.
Patches merged in commits: b1526306e413f0874d608637cd2a9f6571ea4d32 f2ecc22d3cb0473b117a33e048a5a56cd8e9e46d > > On 02/24/2014 02:14 AM, [email protected] wrote: >> From: Chris Leech <[email protected]> >> >> This fixes the condition where hostno value of 0 was being treated >> as invalid. >> >> Signed-off-by: Chris Leech <[email protected]> >> Signed-off-by: Adheer Chandravanshi <[email protected]> >> --- >> usr/iscsiadm.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c >> index 3cde8d1..36617ab 100644 >> --- a/usr/iscsiadm.c >> +++ b/usr/iscsiadm.c >> @@ -3470,7 +3470,7 @@ main(int argc, char **argv) >> ¶ms); >> break; >> case MODE_HOST_STATS: >> - if (!host_no) { >> + if (host_no > MAX_HOST_NO) { >> log_error("STATS mode requires host >> no"); >> rc = ISCSI_ERR_INVAL; >> break; >> > -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/groups/opt_out.
