Loading fs/lockd/clntproc.c +5 −4 Original line number Original line Diff line number Diff line Loading @@ -291,14 +291,15 @@ nlmclnt_alloc_call(void) { { struct nlm_rqst *call; struct nlm_rqst *call; while (!signalled()) { for(;;) { call = (struct nlm_rqst *) kmalloc(sizeof(struct nlm_rqst), GFP_KERNEL); call = kzalloc(sizeof(*call), GFP_KERNEL); if (call) { if (call != NULL) { memset(call, 0, sizeof(*call)); locks_init_lock(&call->a_args.lock.fl); locks_init_lock(&call->a_args.lock.fl); locks_init_lock(&call->a_res.lock.fl); locks_init_lock(&call->a_res.lock.fl); return call; return call; } } if (signalled()) break; printk("nlmclnt_alloc_call: failed, waiting for memory\n"); printk("nlmclnt_alloc_call: failed, waiting for memory\n"); schedule_timeout_interruptible(5*HZ); schedule_timeout_interruptible(5*HZ); } } Loading Loading
fs/lockd/clntproc.c +5 −4 Original line number Original line Diff line number Diff line Loading @@ -291,14 +291,15 @@ nlmclnt_alloc_call(void) { { struct nlm_rqst *call; struct nlm_rqst *call; while (!signalled()) { for(;;) { call = (struct nlm_rqst *) kmalloc(sizeof(struct nlm_rqst), GFP_KERNEL); call = kzalloc(sizeof(*call), GFP_KERNEL); if (call) { if (call != NULL) { memset(call, 0, sizeof(*call)); locks_init_lock(&call->a_args.lock.fl); locks_init_lock(&call->a_args.lock.fl); locks_init_lock(&call->a_res.lock.fl); locks_init_lock(&call->a_res.lock.fl); return call; return call; } } if (signalled()) break; printk("nlmclnt_alloc_call: failed, waiting for memory\n"); printk("nlmclnt_alloc_call: failed, waiting for memory\n"); schedule_timeout_interruptible(5*HZ); schedule_timeout_interruptible(5*HZ); } } Loading