Skip to content

Commit

Permalink
isdn: type bug in isdn_net_header()
Browse files Browse the repository at this point in the history
We use len to store the return value from eth_header().  eth_header()
can return -ETH_HLEN (-14).  We want to pass this back instead of
truncating it to 65522 and returning that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Feb 9, 2012
1 parent 16bda13 commit 5a46e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/isdn/i4l/isdn_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -1901,7 +1901,7 @@ static int isdn_net_header(struct sk_buff *skb, struct net_device *dev,
{
isdn_net_local *lp = netdev_priv(dev);
unsigned char *p;
ushort len = 0;
int len = 0;

switch (lp->p_encap) {
case ISDN_NET_ENCAP_ETHER:
Expand Down

0 comments on commit 5a46e0f

Please sign in to comment.