aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorBen Widawsky <[email protected]>2014-04-04 22:41:07 -0700
committerDaniel Vetter <[email protected]>2014-04-09 14:37:11 +0200
commit935f38d6948eb0bf10ac691d010fec9e9163a9c6 (patch)
treee6b901b272c1d8d48104708d90adcb845b67d913 /lib/memory-notifier-error-inject.c
parentcfa7698bd41bd1139b7730c396a89b731513ded7 (diff)
drm/i915: Unref context on failed eb_create
I opted to do this instead of grabbing the context reference after eb_create since eb_create can potentially call the shrinker, and that makes things very complicated. This simple patch balances the ref count without requiring a great deal of review to make sure the shrinker path is safe. Theoretically (by design) the shrinker can end up destroying a context, which enforces the reasoning for doing the fix this way instead of moving the reference to later in the function. Cc: Chris Wilson <[email protected]> Signed-off-by: Ben Widawsky <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions