[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150818.190721.630738689965121571.davem@davemloft.net>
Date: Tue, 18 Aug 2015 19:07:21 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: dan.carpenter@...cle.com
Cc: hariprasad@...lsio.com, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [patch] cxgb4: memory corruption in debugfs
From: Dan Carpenter <dan.carpenter@...cle.com>
Date: Tue, 18 Aug 2015 12:31:44 +0300
> 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@...cle.com>
Applied, thanks Dan.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists