uio: fix finding mm index for vma
authorHillf Danton <dhillf@gmail.com>
Mon, 28 Mar 2011 21:33:26 +0000 (23:33 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Apr 2011 23:56:02 +0000 (16:56 -0700)
commitf0c554fddd3be561542cd37acdb3adc9ec5483ee
treeebd4e07dbce73eec19a4161307a1793e65eb82d8
parentd8408aef910b5d538ae07218992b270a9e01067f
uio: fix finding mm index for vma

When finding mm index for vma it looks more flexible that the mm could
be sparse, and both the size of mm and the pgoff of vma could give
correct selection.

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>
drivers/uio/uio.c