From: "O.Sezer" <sezeroz@ttnet.net.tr>
To: linux-kernel@vger.kernel.org
Subject: [PATCH 2.4] iph5526.c fixes from 2.6
Date: Fri, 13 Aug 2004 21:57:14 +0300 [thread overview]
Message-ID: <411D0F0A.1060204@ttnet.net.tr> (raw)
[-- Attachment #1: Type: text/plain, Size: 53 bytes --]
unreached code, rx/tx typo, etc.
Özkan Sezer
[-- Attachment #2: iph5526.c-2.6-fixes.diff --]
[-- Type: text/plain, Size: 1397 bytes --]
--- 27rc5~/drivers/net/fc/iph5526.c 2003-06-13 17:51:34.000000000 +0300
+++ 27rc5/drivers/net/fc/iph5526.c 2004-08-07 14:09:39.000000000 +0300
@@ -689,8 +689,8 @@
prev_IMQ_index = current_IMQ_index;
}
} /*end of for loop*/
- return;
LEAVE("tachyon_interrupt");
+ return;
}
@@ -2933,7 +2933,7 @@
{
struct fc_info *fi = (struct fc_info*)dev->priv;
printk(KERN_WARNING "%s: timed out on send.\n", dev->name);
- fi->fc_stats.rx_dropped++;
+ fi->fc_stats.tx_dropped++;
dev->trans_start = jiffies;
netif_wake_queue(dev);
}
@@ -2976,7 +2976,7 @@
fi->fc_stats.tx_packets++;
}
else
- fi->fc_stats.rx_dropped++;
+ fi->fc_stats.tx_dropped++;
dev->trans_start = jiffies;
/* We free up the IP buffers in the OCI_interrupt handler.
* status == 0 implies that the frame was not transmitted. So the
@@ -3374,8 +3374,8 @@
q = q->next;
}
DPRINTK1("Port Name does not match. Txing LOGO.");
- return 0;
LEAVE("validate_login");
+ return 0;
}
static void add_to_address_cache(struct fc_info *fi, u_int *base_ptr)
@@ -3758,8 +3758,10 @@
sprintf(fi->name, "fc%d", count);
host = scsi_register(tmpt, sizeof(struct iph5526_hostdata));
- if(host==NULL)
+ if(host==NULL) {
+ kfree(fc[count]);
return no_of_hosts;
+ }
hostdata = (struct iph5526_hostdata *)host->hostdata;
memset(hostdata, 0 , sizeof(struct iph5526_hostdata));
reply other threads:[~2004-08-13 19:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=411D0F0A.1060204@ttnet.net.tr \
--to=sezeroz@ttnet.net.tr \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®