commit | a7bd775628006f7da1b94d7a5def6746f55f2321 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Aug 14 02:58:56 2012 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Wed Aug 15 18:50:27 2012 -0300 |
tree | dc017300a1cecfbac681cd3d9abc38129db841d9 | |
parent | e36c92fd63bb4773e6f4bc38ecee11a609ded1cf [diff] |
[media] mem2mem_testdev: unlock and return error code properly We recently added locking to this function, but there was an error path which accidentally returned holding a lock. Also we returned zero on failure on some paths instead of the error code. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>