lkml.org 
[lkml]   [2016]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [mpt3sas driver 03/10] mpt3sas: Fix static analyzer(coverity) tool identified defects
From
Date
On 28.1.2016 07:37, Suganath prabu Subaramani wrote:
> From: Suganath prabu Subramani <suganath-prabu.subramani@avagotech.com>
>
> 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@avagotech.com>
> Signed-off-by: Chaitra P B <chaitra.basappa@avagotech.com>

Reviewed-by: Tomas Henzl <thenzl@redhat.com>

Tomas

\
 
 \ /
  Last update: 2016-02-04 16:01    [W:0.196 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site