mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 11:02:31 +02:00
Store size and aligned size in memory object
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
This commit is contained in:
5
isp.c
5
isp.c
@@ -51,12 +51,15 @@ struct isp_mem_obj *isp_mem_create(struct bcwc_private *dev_priv,
|
||||
PAGE_SIZE, NULL, NULL);
|
||||
if (ret) {
|
||||
dev_err(&dev_priv->pdev->dev,
|
||||
"Failed to allocate resource (size: %Ld, start: %Ld, end: %Ld, ret: %d)\n", size, root->start, root->end, ret);
|
||||
"Failed to allocate resource (size: %Ld, start: %Ld, end: %Ld)\n",
|
||||
size, root->start, root->end);
|
||||
kfree(obj);
|
||||
obj = NULL;
|
||||
}
|
||||
|
||||
obj->offset = obj->base.start - root->start;
|
||||
obj->size = size;
|
||||
obj->size_aligned = obj->base.end - obj->base.start;
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user