commit | c938a003448063382e0575aee2d381d4cd7aec34 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Aug 18 12:31:44 2015 +0300 |
committer | David S. Miller <davem@davemloft.net> | Tue Aug 18 19:06:58 2015 -0700 |
tree | 11a561ba6172a59e832363088b7ba95dc7e35438 | |
parent | 3dc33e23227de8d854a665157cf465303e7cbbce [diff] |
cxgb4: memory corruption in debugfs You can't use kstrtoul() with an int or it causes memory corruption. Also j should be unsigned or we have underflow bugs. I considered changing "j" to unsigned long but everything fits in a u32. Fixes: 8e3d04fd7d70 ('cxgb4: Add MPS tracing support') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>