Commit d4a95ad
nvme: Add error path for xa_store in nvme_init_effects
The xa_store() may fail due to memory allocation failure because there
is no guarantee that the index NVME_CSI_NVM is already used. This fix
introduces a new function to handle the error path.
Fixes: cc115cb ("nvme: always initialize known command effects")
Signed-off-by: Keisuke Nishimura <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Keith Busch <[email protected]>1 parent e4a0a30 commit d4a95ad
1 file changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3175 | 3175 | | |
3176 | 3176 | | |
3177 | 3177 | | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
| 3196 | + | |
3178 | 3197 | | |
3179 | 3198 | | |
3180 | 3199 | | |
| |||
3221 | 3240 | | |
3222 | 3241 | | |
3223 | 3242 | | |
3224 | | - | |
3225 | | - | |
3226 | | - | |
3227 | | - | |
| 3243 | + | |
| 3244 | + | |
| 3245 | + | |
3228 | 3246 | | |
3229 | 3247 | | |
3230 | 3248 | | |
| |||
0 commit comments