Patchwork netxen_nic: signedness bug in netxen_md_entry_err_chk()

login
register
mail settings
Submitter Rajesh Borundia
Date Feb. 9, 2012, 7:27 a.m.
Message ID <13A253B3F9BEFE43B93C09CF75F63CAA81A886ECD2@MNEXMB1.qlogic.org>
Download mbox | patch
Permalink /patch/140321/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Rajesh Borundia - Feb. 9, 2012, 7:27 a.m.
Thanks Dan for fixing this.

Rajesh

Patch

diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
index 0a81228..6f37470 100644
--- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
+++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
@@ -2354,7 +2354,7 @@  netxen_md_rdqueue(struct netxen_adapter *adapter,
 */

 static int netxen_md_entry_err_chk(struct netxen_adapter *adapter,
-                               struct netxen_minidump_entry *entry, u32 esize)
+                               struct netxen_minidump_entry *entry, int esize)
 {
        if (esize < 0) {
                entry->hdr.driver_flags |= NX_DUMP_SKIP;