[PATCH 3/3] drm/i915/uc: Fix two issues with over-size firmware files

2022-12-21 Thread John . C . Harrison
From: John Harrison In the case where a firmware file is too large (e.g. someone downloaded a web page ASCII dump from github...), the firmware object is released but the pointer is not zerod. If no other firmware file was found then release would be called again leading to a double kfree. Also,

Re: [PATCH 3/3] drm/i915/uc: Fix two issues with over-size firmware files

2022-12-20 Thread Ceraolo Spurio, Daniele
On 12/20/2022 3:41 AM, john.c.harri...@intel.com wrote: From: John Harrison In the case where a firmware file is too large (e.g. someone downloaded a web page ASCII dump from github...), the firmware object is released but the pointer is not zerod. If no other firmware file was found then re

[PATCH 3/3] drm/i915/uc: Fix two issues with over-size firmware files

2022-12-19 Thread John . C . Harrison
From: John Harrison In the case where a firmware file is too large (e.g. someone downloaded a web page ASCII dump from github...), the firmware object is released but the pointer is not zerod. If no other firmware file was found then release would be called again leading to a double kfree. Also,