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

Heyi Guo heyi.guo at linaro.org
Wed Apr 8 09:04:18 UTC 2015


Sorry, missed that.

However, why not to add the check before get_user?

+    if (get_user(datasize, pgetvariable_local.DataSize))
+        return -EFAULT;



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