commit | c6edc42fe1b5562abae22beabbebd9e557527ae3 | [log] [tgz] |
---|---|---|
author | Hillf Danton <dhillf@gmail.com> | Thu Mar 31 20:38:47 2011 +0800 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Tue Apr 19 16:56:03 2011 -0700 |
tree | 757c9373b57ad7ca60925b0aec83bf60d0de953e | |
parent | f0c554fddd3be561542cd37acdb3adc9ec5483ee [diff] |
uio: fix allocating minor id for uio device The number of uio devices that could be used should be less than UIO_MAX_DEVICES by design, and this work guards any cases in which id more than UIO_MAX_DEVICES is utilized. Signed-off-by: Hillf Danton <dhillf@gmail.com> Signed-off-by: Hans J. Koch <hjk@hansjkoch.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>