mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
drm/i915: Use might_alloc()
This maybe uses lockdep through the fs_reclaim annotations. Signed-off-by: Bernard Zhao <bernard@vivo.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20210429021327.57944-1-bernard@vivo.com
This commit is contained in:
parent
73552e008a
commit
0333ec8806
1 changed files with 1 additions and 1 deletions
|
@ -929,7 +929,7 @@ __i915_request_create(struct intel_context *ce, gfp_t gfp)
|
|||
u32 seqno;
|
||||
int ret;
|
||||
|
||||
might_sleep_if(gfpflags_allow_blocking(gfp));
|
||||
might_alloc(gfp);
|
||||
|
||||
/* Check that the caller provided an already pinned context */
|
||||
__intel_context_pin(ce);
|
||||
|
|
Loading…
Reference in a new issue