From: Richard Weinberger Date: Wed, 2 Nov 2011 12:17:27 +0000 (+0100) Subject: um: fix ubd cow size X-Git-Tag: v3.2-rc1~87^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8535639810e578960233ad39def3ac2157b0c3ec;p=pandora-kernel.git 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 CC: stable@kernel.org --- Reading git-diff-tree failed