|
@@ -992,7 +992,7 @@ int vivid_vid_cap_s_selection(struct file *file, void *fh, struct v4l2_selection
|
|
|
v4l2_rect_map_inside(&s->r, &dev->fmt_cap_rect);
|
|
v4l2_rect_map_inside(&s->r, &dev->fmt_cap_rect);
|
|
|
if (dev->bitmap_cap && (compose->width != s->r.width ||
|
|
if (dev->bitmap_cap && (compose->width != s->r.width ||
|
|
|
compose->height != s->r.height)) {
|
|
compose->height != s->r.height)) {
|
|
|
- kfree(dev->bitmap_cap);
|
|
|
|
|
|
|
+ vfree(dev->bitmap_cap);
|
|
|
dev->bitmap_cap = NULL;
|
|
dev->bitmap_cap = NULL;
|
|
|
}
|
|
}
|
|
|
*compose = s->r;
|
|
*compose = s->r;
|