···186187 spin_lock_init(&socket->lock);188189- if (socket->resource_ops->init) {190- ret = socket->resource_ops->init(socket);191- if (ret)192- return (ret);193- }194-195 /* try to obtain a socket number [yes, it gets ugly if we196 * register more than 2^sizeof(unsigned int) pcmcia197 * sockets... but the socket number is deprecated···232 init_completion(&socket->thread_done);233 mutex_init(&socket->skt_mutex);234 spin_lock_init(&socket->thread_lock);000000235236 tsk = kthread_run(pccardd, socket, "pccardd");237 if (IS_ERR(tsk)) {
···186187 spin_lock_init(&socket->lock);188000000189 /* try to obtain a socket number [yes, it gets ugly if we190 * register more than 2^sizeof(unsigned int) pcmcia191 * sockets... but the socket number is deprecated···238 init_completion(&socket->thread_done);239 mutex_init(&socket->skt_mutex);240 spin_lock_init(&socket->thread_lock);241+242+ if (socket->resource_ops->init) {243+ ret = socket->resource_ops->init(socket);244+ if (ret)245+ goto err;246+ }247248 tsk = kthread_run(pccardd, socket, "pccardd");249 if (IS_ERR(tsk)) {