iscsiadm: Fix the hostno check for stats submode of host mode

This fixes the condition where hostno value of 0 was being treated
as invalid.

Signed-off-by: Chris Leech <cleech@redhat.com>
Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
iscsiadm: Fix the compile time warning

This fixes the following compile time warning message:

iscsiadm.c:2248: warning: passing argument 1 of 'print_host_stats' from incompatible pointer type

Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
ISCSIUIO: Fixed a pthread resc leak from excessive session recovery

A pthread resource leak was discovered in the ongoing pthread
creation code during the session recovery process.  These pthreads
were erroneously created as joinable instead of having the intended
detached attribute.

Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>