aboutsummaryrefslogtreecommitdiff
path: root/crypto/twofish_generic.c
diff options
context:
space:
mode:
authorGravatar Srivatsa S. Bhat <srivatsa@csail.mit.edu> 2018-02-05 18:25:09 -0800
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2018-03-15 17:59:24 +0100
commit652d703b21eb1caf2673c10bd58e4b0121dc7c50 (patch)
treed914ae0c37d7f73dd296d1a228503489ea903913 /crypto/twofish_generic.c
parentslimbus: core: use put_device() instead of kfree() (diff)
downloadlinux-652d703b21eb1caf2673c10bd58e4b0121dc7c50.tar.gz
linux-652d703b21eb1caf2673c10bd58e4b0121dc7c50.tar.bz2
linux-652d703b21eb1caf2673c10bd58e4b0121dc7c50.zip
char_dev: Fix off-by-one bugs in find_dynamic_major()
CHRDEV_MAJOR_DYN_END and CHRDEV_MAJOR_DYN_EXT_END are valid major numbers. So fix the loop iteration to include them in the search for free major numbers. While at it, also remove a redundant if condition ("cd->major != i"), as it will never be true. Signed-off-by: Srivatsa S. Bhat <srivatsa@csail.mit.edu> Reviewed-by: Logan Gunthorpe <logang@deltatee.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/twofish_generic.c')
0 files changed, 0 insertions, 0 deletions