netxen_nic: signedness bug in netxen_md_entry_err_chk()
"esize" should be signed because it can be negative here. For example, when we call it in netxen_parse_md_template(), it could be -1 from the return value of netxen_md_L2Cache(). Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
039055b965
commit
a584b7ae4e
|
@ -2354,7 +2354,7 @@ netxen_md_rdqueue(struct netxen_adapter *adapter,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int netxen_md_entry_err_chk(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) {
|
if (esize < 0) {
|
||||||
entry->hdr.driver_flags |= NX_DUMP_SKIP;
|
entry->hdr.driver_flags |= NX_DUMP_SKIP;
|
||||||
|
|
Loading…
Reference in New Issue