[stgt] [PATCH] Fix possible segfault on logicalunit update

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Thu Aug 29 00:00:30 CEST 2013


On Wed, 28 Aug 2013 19:18:13 +0300
Roi Dayan <roid at mellanox.com> wrote:

> When updating logicalunit with tgtdadm without any params
> tgtd will segfault when calling strncmp on NULL.
> The call to strsep later is ok and will return NULL.
> 
> To reproduce create a target with a lun and run:
> tgtadm -m logicalunit -o update --tid 1 --lun 1
> 
> Signed-off-by: Roi Dayan <roid at mellanox.com>
> ---
>  usr/spc.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

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



More information about the stgt mailing list