Commit 1da570d
fpga: dfl-cxl-cache: fix check of return of vma_lookup()
The function, vma_lookup, return NULL on error, not PTR_ERR.
Fix the error handling accordingly. This problem was reported
by Coverity.
Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com1 parent fdf99b5 commit 1da570d
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | 273 | | |
275 | 274 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
280 | 278 | | |
281 | 279 | | |
282 | 280 | | |
| |||
292 | 290 | | |
293 | 291 | | |
294 | 292 | | |
295 | | - | |
| 293 | + | |
296 | 294 | | |
297 | 295 | | |
298 | 296 | | |
| |||
0 commit comments