diff options
Diffstat (limited to 'net/irda/irlap_frame.c')
| -rw-r--r-- | net/irda/irlap_frame.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/net/irda/irlap_frame.c b/net/irda/irlap_frame.c index 688222cbf55..9ea0c933b9f 100644 --- a/net/irda/irlap_frame.c +++ b/net/irda/irlap_frame.c @@ -544,7 +544,7 @@ static void irlap_recv_discovery_xid_cmd(struct irlap_cb *self,  		/*  		 *  We now have some discovery info to deliver!  		 */ -		discovery = kmalloc(sizeof(discovery_t), GFP_ATOMIC); +		discovery = kzalloc(sizeof(discovery_t), GFP_ATOMIC);  		if (!discovery) {  			IRDA_WARNING("%s: unable to malloc!\n", __func__);  			return; @@ -848,7 +848,7 @@ void irlap_send_data_primary_poll(struct irlap_cb *self, struct sk_buff *skb)  	 * though IrLAP is currently sending the *last* frame of the  	 * tx-window, the driver most likely has only just started  	 * sending the *first* frame of the same tx-window. -	 * I.e. we are always at the very begining of or Tx window. +	 * I.e. we are always at the very beginning of or Tx window.  	 * Now, we are supposed to set the final timer from the end  	 * of our tx-window to let the other peer reply. So, we need  	 * to add extra time to compensate for the fact that we  | 
