• Richard Weinberger's avatar
    um: fix ubd cow size · 85356398
    Richard Weinberger authored
    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: default avatarRichard Weinberger <richard@nod.at>
    CC: stable@kernel.org
    85356398
ubd_kern.c 33.8 KB