Re: [mpt3sas driver 03/10] mpt3sas: Fix static analyzer(coverity) tool identified defects

From: Tomas Henzl
Date: Thu Feb 04 2016 - 09:18:59 EST


On 28.1.2016 07:37, Suganath prabu Subaramani wrote:
> From: Suganath prabu Subramani <suganath-prabu.subramani@xxxxxxxxxxxxx>
>
> 1.Wrong size of argument is being passed
> The size of struct being passed as an argument to memset func and area of
> memory being pointed by an instance of struct in memset func should be of
> same structure type.
> 2.Dereference null return value
> 3.Array compared against '0'
> Check whether value pointed by particular index of an array is null or not
> in "if" statement.
>
> Signed-off-by: Suganath prabu Subramani <suganath-prabu.subramani@xxxxxxxxxxxxx>
> Signed-off-by: Chaitra P B <chaitra.basappa@xxxxxxxxxxxxx>

Reviewed-by: Tomas Henzl <thenzl@xxxxxxxxxx>

Tomas