From: Ike Panhc <ike.pan@canonical.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Matthew Garrett <mjg@redhat.com>,
platform-driver-x86@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: Re: [patch] ideapad: uninitialized data in ideapad_acpi_add()
Date: Thu, 28 Jun 2012 09:52:32 +0000 [thread overview]
Message-ID: <4FEC2960.3010300@canonical.com> (raw)
In-Reply-To: <20120622135746.GG5390@mwanda>
On 06/22/2012 09:57 PM, Dan Carpenter wrote:
> On Wed, Jun 20, 2012 at 08:23:13PM +0800, Ike Panhc wrote:
>> Hi Dan,
>>
>> # cat /sys/kernel/debug/ideapad/cfg
>> cfg: 0xFFFF8800007DE140
>> ^^^^^^^^ the uninitialized bit
>>
>> I see your point, perhaps unsigned int will be better then int?
>>
>
> I don't know if this is a question or a resend request.
>
> I just chose that base on the fact that we are reading an int from
> ACPI in read_method_int(adevice->handle, "_CFG", &cfg). Either way
> we're going to run into integer conversion issues if we get passed
> a large or negative int.
>
> I can resend if you want, I don't have strong feelings on this.
>
> regards,
> dan carpenter
>
ah, I asked stupid question. Never mind.
Thanks for your report.
WARNING: multiple messages have this Message-ID (diff)
From: Ike Panhc <ike.pan@canonical.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Matthew Garrett <mjg@redhat.com>,
platform-driver-x86@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: Re: [patch] ideapad: uninitialized data in ideapad_acpi_add()
Date: Thu, 28 Jun 2012 17:52:32 +0800 [thread overview]
Message-ID: <4FEC2960.3010300@canonical.com> (raw)
In-Reply-To: <20120622135746.GG5390@mwanda>
On 06/22/2012 09:57 PM, Dan Carpenter wrote:
> On Wed, Jun 20, 2012 at 08:23:13PM +0800, Ike Panhc wrote:
>> Hi Dan,
>>
>> # cat /sys/kernel/debug/ideapad/cfg
>> cfg: 0xFFFF8800007DE140
>> ^^^^^^^^ the uninitialized bit
>>
>> I see your point, perhaps unsigned int will be better then int?
>>
>
> I don't know if this is a question or a resend request.
>
> I just chose that base on the fact that we are reading an int from
> ACPI in read_method_int(adevice->handle, "_CFG", &cfg). Either way
> we're going to run into integer conversion issues if we get passed
> a large or negative int.
>
> I can resend if you want, I don't have strong feelings on this.
>
> regards,
> dan carpenter
>
ah, I asked stupid question. Never mind.
Thanks for your report.
next prev parent reply other threads:[~2012-06-28 9:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-12 16:28 [patch] ideapad: uninitialized data in ideapad_acpi_add() Dan Carpenter
2012-06-12 16:28 ` Dan Carpenter
2012-06-20 12:23 ` Ike Panhc
2012-06-20 12:23 ` Ike Panhc
2012-06-22 13:57 ` Dan Carpenter
2012-06-22 13:57 ` Dan Carpenter
2012-06-28 9:52 ` Ike Panhc [this message]
2012-06-28 9:52 ` Ike Panhc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FEC2960.3010300@canonical.com \
--to=ike.pan@canonical.com \
--cc=dan.carpenter@oracle.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=mjg@redhat.com \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.