[PATCH 1/2] uefi: uefirtvariable: Add invalid NULL parameter sanity checks

Colin Ian King colin.king at canonical.com
Wed Apr 8 09:09:30 UTC 2015


On 08/04/15 10:04, Heyi Guo wrote:
> Sorry, missed that.
> 
> However, why not to add the check before get_user?
> 
> +    if (get_user(datasize, pgetvariable_local.DataSize))
> +        return -EFAULT;
> 

Not sure what you mean by that.

> 
> 
> On 04/08/2015 04:51 PM, Colin Ian King wrote:
>> +    if (get_user(datasize, pgetvariable_local.DataSize))
>> >>+        return -EFAULT;
> 




More information about the fwts-devel mailing list