Re: [PATCH 2/3] iommufd/device: Make hwpt_list list_add/del symmetric

From: Nicolin Chen
Date: Sat Jan 28 2023 - 15:27:57 EST


On Sat, Jan 28, 2023 at 07:52:54PM +0800, kernel test robot wrote:

> >> drivers/iommu/iommufd/device.c:279:23: warning: variable 'hwpt' is uninitialized when used here [-Wuninitialized]
> lockdep_assert_held(&hwpt->ioas->mutex);
> ^~~~

A mistake here...will fix with a v2:
lockdep_assert_held(&ioas->mutex);

Thanks
Nicolin