-
由 Adam Guerin 提交于
adf_copy_key_value_data() copies data from userland to kernel, based on a linked link provided by userland. If userland provides a circular list (or just a very long one) then it would drive a long loop where allocation occurs in every loop. This could lead to low memory conditions. Adding a limit to stop endless loop. Signed-off-by: NAdam Guerin <adam.guerin@intel.com> Co-developed-by: NCiunas Bennett <ciunas.bennett@intel.com> Signed-off-by: NCiunas Bennett <ciunas.bennett@intel.com> Reviewed-by: NGiovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
72f6e0ea