Commit 5957c19
iommu: Tidy the control flow in iommu_group_store_type()
Use a normal "goto unwind" instead of trying to be clever with checking
!ret and manually managing the unlock.
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/17-v5-1b99ae392328+44574-iommu_err_unwind_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent e996c12 commit 5957c19
1 file changed
Lines changed: 15 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2940 | 2940 | | |
2941 | 2941 | | |
2942 | 2942 | | |
| 2943 | + | |
2943 | 2944 | | |
2944 | 2945 | | |
2945 | 2946 | | |
| |||
2964 | 2965 | | |
2965 | 2966 | | |
2966 | 2967 | | |
2967 | | - | |
2968 | | - | |
2969 | | - | |
| 2968 | + | |
| 2969 | + | |
2970 | 2970 | | |
2971 | | - | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
2972 | 2974 | | |
2973 | 2975 | | |
2974 | 2976 | | |
2975 | 2977 | | |
2976 | | - | |
2977 | | - | |
| 2978 | + | |
| 2979 | + | |
2978 | 2980 | | |
2979 | 2981 | | |
2980 | 2982 | | |
| 2983 | + | |
| 2984 | + | |
2981 | 2985 | | |
2982 | 2986 | | |
2983 | 2987 | | |
| |||
2988 | 2992 | | |
2989 | 2993 | | |
2990 | 2994 | | |
2991 | | - | |
2992 | | - | |
2993 | | - | |
2994 | | - | |
2995 | | - | |
2996 | | - | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
2997 | 2998 | | |
| 2999 | + | |
| 3000 | + | |
2998 | 3001 | | |
2999 | 3002 | | |
3000 | 3003 | | |
| |||
0 commit comments