OSDN Git Service

sound: rawmidi: Move spinlock under realloc_mutex
authorSrinivasa Rao Kuppala <srkupp@codeaurora.org>
Wed, 30 May 2018 06:52:02 +0000 (12:22 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Mon, 18 Jun 2018 10:42:54 +0000 (03:42 -0700)
commit2763b994a1a1145eb8d538b35e7bab5156e1e351
treecd48bd13d2ae9bba7d0487a6fa2c2edc4629e6d0
parent2df37432879423de0fd90bc659a1b3369abf1951
sound: rawmidi: Move spinlock under realloc_mutex

A merge conflict resolution of commit e57f781805f0 ("ANDROID: sound:
rawmidi: Hold lock around realloc") placed a realloc_mutex lock
inside of a runtime->lock irq spinlock. The mutex lock has to
encompass the spinlock to avoid attempts to sleep in an invalid
context.

Change-Id: I29723c5623db3b7145644f941ccc5226e3764f08
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
sound/core/rawmidi.c