Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751421AbbFXFXx (ORCPT ); Wed, 24 Jun 2015 01:23:53 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:36723 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750762AbbFXFXp (ORCPT ); Wed, 24 Jun 2015 01:23:45 -0400 Date: Wed, 24 Jun 2015 10:53:30 +0530 From: Sudip Mukherjee To: Luis de Bethencourt Cc: Dan Carpenter , devel@driverdev.osuosl.org, Kirk Reiser , Greg Kroah-Hartman , speakup@linux-speakup.org, Melike Yurtoglu , linux-kernel@vger.kernel.org, Domagoj Trsan , Samuel Thibault , Chris Brannon Subject: Re: [PATCH] staging: speakup: replace simple_strtoul() with kstrtoint() Message-ID: <20150624052330.GA3881@sudip-PC> References: <20150623204711.GA18380@turing> <20150623225333.GQ28762@mwanda> <20150623231552.GA19085@turing> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150623231552.GA19085@turing> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 886 Lines: 24 On Wed, Jun 24, 2015 at 12:15:52AM +0100, Luis de Bethencourt wrote: > On Wed, Jun 24, 2015 at 01:53:33AM +0300, Dan Carpenter wrote: > > Nope. Your patch is totally wrong (buggy). Please be more careful in > > the future. > > > > regards, > > dan carpenter > > > > I saw other commits replace the obsolete simple_strtoul() this way and the > documentation makes it look like it is a 1 to 1 replacement. > > Sorry about this. I will investigate further to understand why this is buggy > and be more careful in the future. simple_strtoul returns unsigned long and kstrtoint gives int. documentation says to use kstrtoul. regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/