~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to net/iucv/af_iucv.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
 */
191
191
static int afiucv_pm_restore_thaw(struct device *dev)
192
192
{
193
 
        struct iucv_sock *iucv;
194
193
        struct sock *sk;
195
194
        struct hlist_node *node;
196
195
 
199
198
#endif
200
199
        read_lock(&iucv_sk_list.lock);
201
200
        sk_for_each(sk, node, &iucv_sk_list.head) {
202
 
                iucv = iucv_sk(sk);
203
201
                switch (sk->sk_state) {
204
202
                case IUCV_CONNECTED:
205
203
                        sk->sk_err = EPIPE;
381
379
{
382
380
        unsigned char user_data[16];
383
381
        struct iucv_sock *iucv = iucv_sk(sk);
384
 
        int err;
385
382
        unsigned long timeo;
386
383
 
387
384
        iucv_sock_clear_timer(sk);
394
391
 
395
392
        case IUCV_CONNECTED:
396
393
        case IUCV_DISCONN:
397
 
                err = 0;
398
 
 
399
394
                sk->sk_state = IUCV_CLOSING;
400
395
                sk->sk_state_change(sk);
401
396
 
404
399
                                timeo = sk->sk_lingertime;
405
400
                        else
406
401
                                timeo = IUCV_DISCONN_TIMEOUT;
407
 
                        err = iucv_sock_wait(sk,
 
402
                        iucv_sock_wait(sk,
408
403
                                        iucv_sock_in_state(sk, IUCV_CLOSED, 0),
409
404
                                        timeo);
410
405
                }
417
412
                        low_nmcpy(user_data, iucv->src_name);
418
413
                        high_nmcpy(user_data, iucv->dst_name);
419
414
                        ASCEBC(user_data, sizeof(user_data));
420
 
                        err = iucv_path_sever(iucv->path, user_data);
 
415
                        iucv_path_sever(iucv->path, user_data);
421
416
                        iucv_path_free(iucv->path);
422
417
                        iucv->path = NULL;
423
418
                }