summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/udlfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/udlfb.c')
-rw-r--r--drivers/video/fbdev/udlfb.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/video/fbdev/udlfb.c b/drivers/video/fbdev/udlfb.c
index ccede85df1e1..ba060af2b09f 100644
--- a/drivers/video/fbdev/udlfb.c
+++ b/drivers/video/fbdev/udlfb.c
@@ -918,7 +918,7 @@ static int dlfb_ops_open(struct fb_info *info, int user)
struct fb_deferred_io *fbdefio;
- fbdefio = kzalloc(sizeof(struct fb_deferred_io), GFP_KERNEL);
+ fbdefio = kzalloc_obj(struct fb_deferred_io, GFP_KERNEL);
if (fbdefio) {
fbdefio->delay = DL_DEFIO_WRITE_DELAY;
@@ -1164,7 +1164,8 @@ static const struct fb_ops dlfb_ops = {
static void dlfb_deferred_vfree(struct dlfb_data *dlfb, void *mem)
{
- struct dlfb_deferred_free *d = kmalloc(sizeof(struct dlfb_deferred_free), GFP_KERNEL);
+ struct dlfb_deferred_free *d = kmalloc_obj(struct dlfb_deferred_free,
+ GFP_KERNEL);
if (!d)
return;
d->mem = mem;
@@ -1606,7 +1607,7 @@ static int dlfb_usb_probe(struct usb_interface *intf,
static u8 out_ep[] = {OUT_EP_NUM + USB_DIR_OUT, 0};
/* usb initialization */
- dlfb = kzalloc(sizeof(*dlfb), GFP_KERNEL);
+ dlfb = kzalloc_obj(*dlfb, GFP_KERNEL);
if (!dlfb) {
dev_err(&intf->dev, "%s: failed to allocate dlfb\n", __func__);
return -ENOMEM;
@@ -1852,7 +1853,7 @@ retry:
dlfb->urbs.available = 0;
while (dlfb->urbs.count * size < wanted_size) {
- unode = kzalloc(sizeof(*unode), GFP_KERNEL);
+ unode = kzalloc_obj(*unode, GFP_KERNEL);
if (!unode)
break;
unode->dlfb = dlfb;