kernel: mtdsplit_uimage: fix passed info about buf size

We obviously can't use sizeof(*buf) which is always 1.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44424
owl
Rafał Miłecki 2015-02-12 20:13:20 +00:00
parent 02aa882e60
commit 615909819d
1 changed files with 2 additions and 2 deletions

View File

@ -113,11 +113,11 @@ static int __mtdsplit_parse_uimage(struct mtd_info *master,
uimage_size = 0; uimage_size = 0;
ret = read_uimage_header(master, offset, buf, sizeof(*buf)); ret = read_uimage_header(master, offset, buf, MAX_HEADER_LEN);
if (ret) if (ret)
continue; continue;
ret = find_header(buf, sizeof(*buf)); ret = find_header(buf, MAX_HEADER_LEN);
if (ret < 0) { if (ret < 0) {
pr_debug("no valid uImage found in \"%s\" at offset %llx\n", pr_debug("no valid uImage found in \"%s\" at offset %llx\n",
master->name, (unsigned long long) offset); master->name, (unsigned long long) offset);