Re: [PATCH] tgtd: fix internal error of __inaccount_bind()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 24 Feb 2014 15:43:26 +0900
Ryusuke Konishi <konishi.ryusuke@xxxxxxxxxxxxx> wrote:

> When trying to bind 32 accounts to the same target, tgtadm outputs
> "unknown error" and exits returing status code 22 (EINVAL).
> 
> This is because __inaccount_bind() function of tgtd does not increment
> target->account.nr_inaccount when it doubles maximum number of
> accounts for the target, and therefore it tries to allocate an aid
> slot on target->account.in_aids[] array even though no free aid slot
> is available there.
> 
> This fixes the bug.
> 
> Reported-by: Satoshi Yoshida <yoshida.satoshi@xxxxxxxxxxxxx>
> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@xxxxxxxxxxxxx>
> ---
>  usr/target.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Looks good, thanks a lot!
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux