]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'net-next/master'
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 02:13:21 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 02:13:21 +0000 (13:13 +1100)
Conflicts:
arch/mips/include/uapi/asm/socket.h
crypto/ctr.c

1  2 
MAINTAINERS
arch/mips/include/uapi/asm/socket.h
crypto/ctr.c
drivers/net/ethernet/freescale/fec_mpc52xx.c
drivers/s390/net/qeth_core.h
net/ipv4/tcp.c

diff --cc MAINTAINERS
Simple merge
index cc208f9f89201e40868f839225356fd7ede2658b,3e68bfbda6bc2f8e574a614a23d6713053182233..47132f44c9559630901ce5ca54b35220a548acf4
  #define SO_LINGER     0x0080  /* Block on close of a reliable
                                   socket to transmit pending data.  */
  #define SO_OOBINLINE 0x0100   /* Receive out-of-band data in-band.  */
- #if 0
- To add: #define SO_REUSEPORT 0x0200   /* Allow local address and port reuse.  */
- #endif
+ #define SO_REUSEPORT 0x0200   /* Allow local address and port reuse.  */
  
  #define SO_TYPE               0x1008  /* Compatible name for SO_STYLE.  */
 -#define SO_STYLE      SO_TYPE /* Synonym */
 +#define SO_STYLE      SO_TYPE /* Synonym */
  #define SO_ERROR      0x1007  /* get error status and clear */
  #define SO_SNDBUF     0x1001  /* Send buffer size. */
  #define SO_RCVBUF     0x1002  /* Receive buffer. */
diff --cc crypto/ctr.c
index 095dcb66d72ddb8f5d2be2d61710e1c5fbdf544c,1f2997cbfdd480937f6ca0c86abd3e9d7e73d5b0..f2b94f27bb2cf9ac2b49ffa88d527f4f8ef98961
@@@ -324,18 -335,40 +335,38 @@@ static void crypto_rfc3686_exit_tfm(str
  
  static struct crypto_instance *crypto_rfc3686_alloc(struct rtattr **tb)
  {
+       struct crypto_attr_type *algt;
        struct crypto_instance *inst;
        struct crypto_alg *alg;
+       struct crypto_skcipher_spawn *spawn;
+       const char *cipher_name;
        int err;
  
-       err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_BLKCIPHER);
+       algt = crypto_get_attr_type(tb);
 -      err = PTR_ERR(algt);
+       if (IS_ERR(algt))
 -              return ERR_PTR(err);
++              return ERR_CAST(algt);
+       if ((algt->type ^ CRYPTO_ALG_TYPE_BLKCIPHER) & algt->mask)
+               return ERR_PTR(-EINVAL);
+       cipher_name = crypto_attr_alg_name(tb[1]);
 -      err = PTR_ERR(cipher_name);
+       if (IS_ERR(cipher_name))
 -              return ERR_PTR(err);
++              return ERR_CAST(cipher_name);
+       inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL);
+       if (!inst)
+               return ERR_PTR(-ENOMEM);
+       spawn = crypto_instance_ctx(inst);
+       crypto_set_skcipher_spawn(spawn, inst);
+       err = crypto_grab_skcipher(spawn, cipher_name, 0,
+                                  crypto_requires_sync(algt->type,
+                                                       algt->mask));
        if (err)
-               return ERR_PTR(err);
+               goto err_free_inst;
  
-       alg = crypto_attr_alg(tb[1], CRYPTO_ALG_TYPE_BLKCIPHER,
-                                 CRYPTO_ALG_TYPE_MASK);
-       if (IS_ERR(alg))
-               return ERR_CAST(alg);
+       alg = crypto_skcipher_spawn_alg(spawn);
  
        /* We only support 16-byte blocks. */
        err = -EINVAL;
Simple merge
diff --cc net/ipv4/tcp.c
Simple merge