lkml.org 
[lkml]   [2015]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] staging: unisys: virtpci: virtpci: Fix for possible null pointer dereference
From
2015-01-30 13:59 GMT+01:00 Peter Hurley <peter@hurleysoftware.com>:
> On 01/30/2015 07:39 AM, Dan Carpenter wrote:
>> Btw, if you have the smatch cross function database set up then you can
>> figure out this sort of thing by using:
>>
>> $ smdb.py virtpci_driver_attr_store
>>
>> It says that:
>>
>> fs/sysfs/file.c | sysfs_kf_write | (struct sysfs_ops)->store | PARAM_VALUE | 0 | $ | 4096-2117777777777777777
>>
>> So this is called from sysfs_kf_write() and parameter zero is a valid
>> pointer.
>
> Hi Dan,
>
> This would be a good topic for an LWN.net article.
>
> Regards,
> Peter Hurley
>

Hi

Okay, I'll do that this weekend.

But I see with you more about Smatch by the way.

Kind regards
Rickard Strandqvist


\
 
 \ /
  Last update: 2015-01-30 18:41    [W:0.038 / U:7.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site