From: Dan Carpenter <dan.carpenter@oracle.com>
To: Ike Panhc <ike.pan@canonical.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: Fri, 22 Jun 2012 13:57:46 +0000 [thread overview]
Message-ID: <20120622135746.GG5390@mwanda> (raw)
In-Reply-To: <4FE1C0B1.9050901@canonical.com>
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
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Ike Panhc <ike.pan@canonical.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: Fri, 22 Jun 2012 16:57:46 +0300 [thread overview]
Message-ID: <20120622135746.GG5390@mwanda> (raw)
In-Reply-To: <4FE1C0B1.9050901@canonical.com>
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
next prev parent reply other threads:[~2012-06-22 13:57 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 [this message]
2012-06-22 13:57 ` Dan Carpenter
2012-06-28 9:52 ` Ike Panhc
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=20120622135746.GG5390@mwanda \
--to=dan.carpenter@oracle.com \
--cc=ike.pan@canonical.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.