object.c (9ac596a4e875e28bb1fa4b2e00549fadfaf4784e) object.c (3e176fd0600439a8a1e0b3e95e2f0545660ab59c)
1/*
2 * Copyright 2014 Red Hat Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 268 unchanged lines hidden (view full) ---

277 object->map.size = 0;
278
279 if (parent) {
280 if (!(args = kmalloc(sizeof(*args) + size, GFP_KERNEL))) {
281 nvif_object_dtor(object);
282 return -ENOMEM;
283 }
284
1/*
2 * Copyright 2014 Red Hat Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 268 unchanged lines hidden (view full) ---

277 object->map.size = 0;
278
279 if (parent) {
280 if (!(args = kmalloc(sizeof(*args) + size, GFP_KERNEL))) {
281 nvif_object_dtor(object);
282 return -ENOMEM;
283 }
284
285 object->parent = parent->parent;
286
285 args->ioctl.version = 0;
286 args->ioctl.type = NVIF_IOCTL_V0_NEW;
287 args->new.version = 0;
288 args->new.route = parent->client->route;
289 args->new.token = nvif_handle(object);
290 args->new.object = nvif_handle(object);
291 args->new.handle = handle;
292 args->new.oclass = oclass;

--- 14 unchanged lines hidden ---
287 args->ioctl.version = 0;
288 args->ioctl.type = NVIF_IOCTL_V0_NEW;
289 args->new.version = 0;
290 args->new.route = parent->client->route;
291 args->new.token = nvif_handle(object);
292 args->new.object = nvif_handle(object);
293 args->new.handle = handle;
294 args->new.oclass = oclass;

--- 14 unchanged lines hidden ---