diff options
author | Jesse Brandeburg | 2022-12-13 16:01:31 -0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-03-10 09:33:50 +0100 |
commit | 2aa469e6cd1029175452785d99d8be24c8a3e45f (patch) | |
tree | 988c194c01f9c3f6a307afa440c5f41ff3273805 /mm/backing-dev.c | |
parent | f0cf125056ac96669eb59ef5ca3ba789bc815dc0 (diff) |
ice: add missing checks for PF vsi type
[ Upstream commit 6a8d013e904ad9a66706fcc926ec9993bed7d190 ]
There were a few places we had missed checking the VSI type to make sure
it was definitely a PF VSI, before calling setup functions intended only
for the PF VSI.
This doesn't fix any explicit bugs but cleans up the code in a few
places and removes one explicit != vsi->type check that can be
superseded by this code (it's a super set)
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'mm/backing-dev.c')
0 files changed, 0 insertions, 0 deletions