[Intel-wired-lan] [PATCH] ice: Fix possible double free in error handling path

2024-08-30 Thread Ma Ke
When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function adev_release calls kfree(iadev). We shouldn't call kfree(iadev) again in the error handling path. Set 'iadev' to NULL. Cc: sta...@vger.kernel.org Fixes: f9f5301e7e2d ("ice: Register auxiliary devi

Re: [Intel-wired-lan] [PATCH] ice: Fix possible double free in error handling path

2024-08-30 Thread Alexander Lobakin
From: Ma Ke Date: Fri, 30 Aug 2024 21:33:24 +0800 > When auxiliary_device_add() returns error and then calls > auxiliary_device_uninit(), callback function adev_release > calls kfree(iadev). We shouldn't call kfree(iadev) again > in the error handling path. Set 'iadev' to NULL. > > Cc: sta...@vg