[PATCH v2 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-03-16 Thread Joe Moriarty
ing set for the Scsi_Host->parent field, calls to host_to_us() have to make sure the return pointer is not null. Changes were made to check for a return value of NULL on calls to host_to_us(). Signed-off-by: Joe Moriarty <joe.moria...@oracle.com> Reviewed-by: Steven Sistare <steven.sis

[PATCH v2 0/1] Parfait changes

2018-03-16 Thread Joe Moriarty
: Modifications requested by Greg KH Joe Moriarty (1): drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem drivers/usb/storage/scsiglue.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) -- 2.15.0 -- To unsubscribe from this list: send the line

Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-27 Thread Joe Moriarty
On 2/27/2018 2:05 PM, Greg KH wrote: On Tue, Feb 27, 2018 at 01:22:24PM -0500, Joe Moriarty wrote: On 2/27/2018 1:14 PM, Greg KH wrote: On Tue, Feb 27, 2018 at 09:59:40AM -0500, Joe Moriarty wrote: On 2/26/2018 2:35 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 02:08:08PM -0500, Joe Moriarty

Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-27 Thread Joe Moriarty
On 2/27/2018 1:14 PM, Greg KH wrote: On Tue, Feb 27, 2018 at 09:59:40AM -0500, Joe Moriarty wrote: On 2/26/2018 2:35 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 02:08:08PM -0500, Joe Moriarty wrote: On 2/26/2018 1:12 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 12:10:02PM -0500, Joe Moriarty

Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-27 Thread Joe Moriarty
On 2/27/2018 9:59 AM, Joe Moriarty wrote: On 2/26/2018 2:35 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 02:08:08PM -0500, Joe Moriarty wrote: On 2/26/2018 1:12 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 12:10:02PM -0500, Joe Moriarty wrote: The Parfait (version 2.1.0) static code analysis

Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-27 Thread Joe Moriarty
On 2/26/2018 2:35 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 02:08:08PM -0500, Joe Moriarty wrote: On 2/26/2018 1:12 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 12:10:02PM -0500, Joe Moriarty wrote: The Parfait (version 2.1.0) static code analysis tool found the following NULL pointer

Re: [PATCH v1 0/1] Parfait changes

2018-02-26 Thread Joe Moriarty
On 2/26/2018 1:12 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 12:10:01PM -0500, Joe Moriarty wrote: The following patch(s) are bugs found by the static compiler 'Parfait'. Care was taken to make sure false positive results were removed from this patchset. This is not a "patchset",

Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-26 Thread Joe Moriarty
On 2/26/2018 1:12 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 12:10:02PM -0500, Joe Moriarty wrote: The Parfait (version 2.1.0) static code analysis tool found the following NULL pointer dereference problem. What is the "CWE 476" thing in the subject line for? [JDM] (CWE 4

[PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-26 Thread Joe Moriarty
ing set for the Scsi_Host->parent field, calls to host_to_us() have to make sure the return pointer is not null. Changes were made to check for a return value of NULL on calls to host_to_us(). Signed-off-by: Joe Moriarty <joe.moria...@oracle.com> Reviewed-by: Steven Sistare <steven.sis

[PATCH v1 0/1] Parfait changes

2018-02-26 Thread Joe Moriarty
The following patch(s) are bugs found by the static compiler 'Parfait'. Care was taken to make sure false positive results were removed from this patchset. Parfait Overview https://labs.oracle.com/pls/apex/f?p=labs:49:P49_PROJECT_ID:13 v1: Initial release Joe Moriarty (1