diff options
| author | Mauro Carvalho Chehab <[email protected]> | 2016-03-22 12:21:57 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2016-03-31 18:01:35 +0000 |
| commit | e8e3039f5b941f7825d335f8ca11c12a8104db11 (patch) | |
| tree | c5a83551b6f871ed83fb42f23c5a4ebef9bca1cb /fs/btrfs/dev-replace.c | |
| parent | [media] au0828: fix au0828_v4l2_close() dev_state race condition (diff) | |
| download | kernel-e8e3039f5b941f7825d335f8ca11c12a8104db11.tar.gz kernel-e8e3039f5b941f7825d335f8ca11c12a8104db11.zip | |
[media] au0828: Fix dev_state handling
The au0828 dev_state is actually a bit mask. It should not be
checking with "==" but, instead, with a logic and. There are some
places where it was doing it wrong.
Fix that by replacing the dev_state set/clear/test with the
bitops.
As reviewed by Shuah:
"Looks good. Tested running bind/unbind au0828 loop for 1000 times.
Didn't see any problems and the v4l2_querycap() problem has been
fixed with this patch.
After the above test, ran bind/unbind snd_usb_audio 1000 times.
Didn't see any problems. Generated media graph and the graph
looks good."
Cc: [email protected]
Reviewed-by: Shuah Khan <[email protected]>
Tested-by: Shuah Khan <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
