diff options
author | Richard Weinberger <richard@nod.at> | 2011-11-02 13:17:27 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2011-11-02 14:15:42 +0100 |
commit | 8535639810e578960233ad39def3ac2157b0c3ec (patch) | |
tree | 519778b447082e802b42c2d6720475ca1cc7c96e /arch/um/os-Linux/irq.c | |
parent | um: Fix kmalloc argument order in um/vdso/vma.c (diff) | |
download | linux-8535639810e578960233ad39def3ac2157b0c3ec.tar.xz linux-8535639810e578960233ad39def3ac2157b0c3ec.zip |
um: fix ubd cow size
ubd_file_size() cannot use ubd_dev->cow.file because at this time
ubd_dev->cow.file is not initialized.
Therefore, ubd_file_size() will always report a wrong disk size when
COW files are used.
Reading from /dev/ubd* would crash the kernel.
We have to read the correct disk size from the COW file's backing
file.
Signed-off-by: Richard Weinberger <richard@nod.at>
CC: stable@kernel.org
Diffstat (limited to 'arch/um/os-Linux/irq.c')
0 files changed, 0 insertions, 0 deletions