diff options
author | 2011-05-30 15:45:47 -0300 | |
---|---|---|
committer | 2011-06-01 13:24:23 -0300 | |
commit | 8c89ddd536bbe97c1e50424778a139abbf5763c3 (patch) | |
tree | 18281c7cae3e5de64e8745f2d05ad0c03815d34e /fs/ecryptfs/ecryptfs_kernel.h | |
parent | [media] Make nchg variable signed because the code compares this variable against negative values (diff) | |
download | wireguard-linux-8c89ddd536bbe97c1e50424778a139abbf5763c3.tar.xz wireguard-linux-8c89ddd536bbe97c1e50424778a139abbf5763c3.zip |
[media] media: Fix media device minor registration
The find_next_zero_bit() is called with the from and to arguments in the
wrong order. This results in the function always returning 0, and all
media devices being registered with minor 0. Furthermore, mdev->minor is
then used before being assigned with the find_next_zero_bit() return
value. This really makes sure we'll always use minor 0.
Fix this and let the system support more than one media device.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'fs/ecryptfs/ecryptfs_kernel.h')
0 files changed, 0 insertions, 0 deletions