]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
NFC: trf7970a: Unlock mutex before exiting _trf7970a_tg_listen()
authorMark A. Greer <mgreer@animalcreek.com>
Tue, 23 Sep 2014 18:25:48 +0000 (11:25 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 23 Sep 2014 22:28:23 +0000 (00:28 +0200)
commitfc0ae24386142299db14dfea7f32a20022d94d90
treebfa9a5712f931fd34d1a94e687de48a0942aff91
parentb9e3016a5369839bf923c8d2bec9d1552e50f3f3
NFC: trf7970a: Unlock mutex before exiting _trf7970a_tg_listen()

The recently added _trf7970a_tg_listen() routine
has some return paths that don't unlock the mutex
that is locked when the routine is entered.  Fix
this by always unlocking the mutex before returning.

Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/trf7970a.c