/********************************************************************* * * Filename: irlan_provider.h * Version: 0.1 * Description: IrDA LAN access layer * Status: Experimental. * Author: Dag Brattli * Created at: Sun Aug 31 20:14:37 1997 * Modified at: Sun May 9 12:26:11 1999 * Modified by: Dag Brattli * * Copyright (c) 1998-1999 Dag Brattli , All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * Neither Dag Brattli nor University of Tromsø admit liability nor * provide warranty for any of this software. This material is * provided "AS-IS" and at no charge. * ********************************************************************/ #ifndef IRLAN_SERVER_H #define IRLAN_SERVER_H #include #include #include #include #include void irlan_provider_ctrl_disconnect_indication(void *instance, void *sap, LM_REASON reason, struct sk_buff *skb); void irlan_provider_connect_response(struct irlan_cb *, struct tsap_cb *); int irlan_parse_open_data_cmd(struct irlan_cb *self, struct sk_buff *skb); int irlan_provider_parse_command(struct irlan_cb *self, int cmd, struct sk_buff *skb); void irlan_provider_send_reply(struct irlan_cb *self, int command, int ret_code); int irlan_provider_open_ctrl_tsap(struct irlan_cb *self); #endif de/xen?id=c73e44269369e936165f0f9b61f1f09a11dae01c'>treecommitdiff
diff options
context:
space:
mode:
authorVincent <vincent.stehle@laposte.net>2017-01-30 15:06:43 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-31 13:07:40 -0500
commitc73e44269369e936165f0f9b61f1f09a11dae01c (patch)
treee2188e900ba06302f8ed2746cb07edd3efbc5c35 /include/xen
parent040587af31228d82c52267f717c9fcdb65f36335 (diff)
net: thunderx: avoid dereferencing xcv when NULL
This fixes the following smatch and coccinelle warnings: drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119 xcv_setup_link() error: we previously assumed 'xcv' could be null (see line 118) [smatch] drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119:16-20: ERROR: xcv is NULL but dereferenced. [coccinelle] Fixes: 6465859aba1e66a5 ("net: thunderx: Add RGMII interface type support") Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: Sunil Goutham <sgoutham@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/xen')