diff options
author | Tony Lindgren <tony@atomide.com> | 2019-01-26 09:42:03 -0800 |
---|---|---|
committer | Pavel <pavel@ucw.cz> | 2019-01-26 23:32:40 +0100 |
commit | be4723543eed4597435f74afa7c076ec1a691836 (patch) | |
tree | 8bb416a0f448731c7cf4e8655e56431db4d5f24a | |
parent | bcd6426661e73e718e6def25c5b44154ed842252 (diff) | |
download | linux-k-be4723543eed4597435f74afa7c076ec1a691836.tar.gz |
mfd: motmdm: Fix missing wake_up_interruptible()
We need to call this always when reading, not just for commands.
This fixes cat /dev/motmdm1.
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | drivers/mfd/motorola-mdm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/motorola-mdm.c b/drivers/mfd/motorola-mdm.c index d981768657f365..de387a199fef2f 100644 --- a/drivers/mfd/motorola-mdm.c +++ b/drivers/mfd/motorola-mdm.c @@ -313,9 +313,10 @@ static int motmdm_dlci_receive_buf(struct gsm_serdev_dlci *gsm_dlci, else if (mot_dlci->handle_command) mot_dlci->handle_command(mot_dlci, id, msg, msglen); -err_kfifo: wake_up_interruptible(&mot_dlci->read_queue); +err_kfifo: + return err; } |