Now that we have proper reference counting for modules, interfaces, and
connections, no need to worry about grabbing a pointer to your "parent"
structure, all is good.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
if (!gb)
return -ENOMEM;
- gb->connection = connection; // FIXME refcount!
+ gb->connection = connection;
connection->private = gb;
/* Check the version */
return NULL;
}
- connection->interface = interface; /* XXX refcount? */
+ connection->interface = interface;
connection->interface_cport_id = cport_id;
connection->protocol = protocol;
connection->state = GB_CONNECTION_STATE_DISABLED;
if (!interface)
return NULL;
- interface->gmod = gmod; /* XXX refcount? */
+ interface->gmod = gmod;
interface->id = interface_id;
interface->device_id = 0xff; /* Invalid device id to start with */
INIT_LIST_HEAD(&interface->connections);
operation = kmem_cache_zalloc(gb_operation_cache, gfp_flags);
if (!operation)
return NULL;
- operation->connection = connection; /* XXX refcount? */
+ operation->connection = connection;
operation->request = gb_operation_gbuf_create(operation, type,
request_size,