um: fix ubd_file_size for read-only files
authorMartin Pärtel <martin.partel@gmail.com>
Wed, 1 Aug 2012 22:44:22 +0000 (00:44 +0200)
committerRichard Weinberger <richard@nod.at>
Wed, 1 Aug 2012 22:44:49 +0000 (00:44 +0200)
commitd4afcba95fca4dd0f831fe72c1fa4f0638f23765
tree938dad1dd5cb1b0abf9946cf40b050d95c4bffd4
parentb8a420952336ed81ef5c9bf8bad90d3deaee5521
um: fix ubd_file_size for read-only files

Made ubd_file_size not request write access. Fixes use of read-only images.

Signed-off-by: Martin Pärtel <martin.partel@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/ubd_kern.c