If change_protocol() fails and we goto out_raw, then it calls unlock
twice. I noticed that the other time we called change_protocol() we
held the dev-lock, so I changed it to hold it here too.
Signed-off-by: Dan Carpenter erro...@gmail.com
---
Compile tested only.
diff --git
Dan Carpenter wrote:
If change_protocol() fails and we goto out_raw, then it calls unlock
twice.
Gah, good catch, I gotta quit adding new bugs... ;)
I noticed that the other time we called change_protocol() we
held the dev-lock, so I changed it to hold it here too.
Signed-off-by: Dan