[Stgt-devel] [PATCH] iscsi: fix ahs offset

FUJITA Tomonori fujita.tomonori
Thu Dec 27 05:17:32 CET 2007


On Wed, 26 Dec 2007 12:19:48 -0500
Pete Wyckoff <pw at osc.edu> wrote:

> Commit 9c198d43959fb6991815a76f7eb6dcba0b98ff26 introduced a bug by
> changing extdata from a void * to a long *.  The pointer addition to
> calculate the offset of the AHS in extended CDBs was off by a factor
> of 8, leading to memory scribbles.  Fix with an explicit cast.
> 
> Signed-off-by: Pete Wyckoff <pw at osc.edu>
> ---
>  usr/iscsi/iscsid.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Nice catch, thanks.



More information about the stgt mailing list