aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/ctcm_mpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/net/ctcm_mpc.c')
-rw-r--r--drivers/s390/net/ctcm_mpc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/s390/net/ctcm_mpc.c b/drivers/s390/net/ctcm_mpc.c
index 5978b390153f..87c24d2936d6 100644
--- a/drivers/s390/net/ctcm_mpc.c
+++ b/drivers/s390/net/ctcm_mpc.c
@@ -669,8 +669,7 @@ static void ctcmpc_send_sweep_resp(struct channel *rch)
669 goto done; 669 goto done;
670 } 670 }
671 671
672 header = (struct th_sweep *) 672 header = kmalloc(sizeof(struct th_sweep), gfp_type());
673 kmalloc(sizeof(struct th_sweep), gfp_type());
674 673
675 if (!header) { 674 if (!header) {
676 dev_kfree_skb_any(sweep_skb); 675 dev_kfree_skb_any(sweep_skb);
@@ -1191,8 +1190,7 @@ static void ctcmpc_unpack_skb(struct channel *ch, struct sk_buff *pskb)
1191 skb_pull(pskb, new_len); /* point to next PDU */ 1190 skb_pull(pskb, new_len); /* point to next PDU */
1192 } 1191 }
1193 } else { 1192 } else {
1194 mpcginfo = (struct mpcg_info *) 1193 mpcginfo = kmalloc(sizeof(struct mpcg_info), gfp_type());
1195 kmalloc(sizeof(struct mpcg_info), gfp_type());
1196 if (mpcginfo == NULL) 1194 if (mpcginfo == NULL)
1197 goto done; 1195 goto done;
1198 1196