/* This function returns %0 on success and a negative error code on failure.  */
static int read_ltab(struct ubifs_info *c)
/* This function returns %0 on success and a negative error code on failure.  */
static int read_ltab(struct ubifs_info *c)
{
	int err;
	void *buf;
	buf = vmalloc(c->ltab_sz);
	if (!buf)
		return -ENOMEM;
	err = ubifs_leb_read(c, c->ltab_lnum, buf, c->ltab_offs, c->ltab_sz, 1);
	if (err)
		goto out;
	err = unpack_ltab(c, buf);
out:
	vfree(buf);
	return err;
}