Commit 5ceff51f authored by Alessandro Rubini's avatar Alessandro Rubini

svec-drv.c: zero map on error, or next time would EPERM

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent b0001d0d
......@@ -87,6 +87,7 @@ int svec_map_window(struct svec_dev *svec, enum svec_map_win map_type)
dev_err(dev, "Failed to map window %d: (%d)\n",
(int)map_type, rval);
kfree(svec->map[map_type]);
svec->map[map_type] = NULL;
return -EINVAL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment