Commit 9aceb5c
committed
drm/i915: Fix all intel_framebuffer_init failures to take the error path
No more direct return -EINVAL as we have to unwind the
obj->framebuffer_references.
Fixes: 24dbf51 ("drm/i915: struct_mutex is not required for allocating the framebuffer")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170301154128.2841-1-chris@chris-wilson.co.uk1 parent 25b4620 commit 9aceb5c
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14313 | 14313 | | |
14314 | 14314 | | |
14315 | 14315 | | |
14316 | | - | |
| 14316 | + | |
14317 | 14317 | | |
14318 | 14318 | | |
14319 | 14319 | | |
| |||
14358 | 14358 | | |
14359 | 14359 | | |
14360 | 14360 | | |
14361 | | - | |
| 14361 | + | |
14362 | 14362 | | |
14363 | 14363 | | |
14364 | 14364 | | |
14365 | 14365 | | |
14366 | 14366 | | |
14367 | 14367 | | |
14368 | 14368 | | |
14369 | | - | |
| 14369 | + | |
14370 | 14370 | | |
14371 | 14371 | | |
14372 | 14372 | | |
| |||
14375 | 14375 | | |
14376 | 14376 | | |
14377 | 14377 | | |
14378 | | - | |
| 14378 | + | |
14379 | 14379 | | |
14380 | 14380 | | |
14381 | 14381 | | |
14382 | 14382 | | |
14383 | 14383 | | |
14384 | 14384 | | |
14385 | | - | |
| 14385 | + | |
14386 | 14386 | | |
14387 | 14387 | | |
14388 | 14388 | | |
| |||
14392 | 14392 | | |
14393 | 14393 | | |
14394 | 14394 | | |
14395 | | - | |
| 14395 | + | |
14396 | 14396 | | |
14397 | 14397 | | |
14398 | 14398 | | |
14399 | 14399 | | |
14400 | 14400 | | |
14401 | | - | |
| 14401 | + | |
14402 | 14402 | | |
14403 | 14403 | | |
14404 | 14404 | | |
| |||
14411 | 14411 | | |
14412 | 14412 | | |
14413 | 14413 | | |
14414 | | - | |
| 14414 | + | |
14415 | 14415 | | |
14416 | 14416 | | |
14417 | 14417 | | |
| |||
0 commit comments