From: Thomas Hellstrom <thellstrom@vmware.com>
To: "Michel Dänzer" <michel@daenzer.net>
Cc: "airlied@redhat.com" <airlied@redhat.com>,
"dri-devel@lists.sourceforge.net"
<dri-devel@lists.sourceforge.net>
Subject: Re: [PATCH 1/2] drm: Fix a bug in the range manager. When searching for free space in a range, the function could return a node extending outside of the given range.
Date: Fri, 12 Feb 2010 10:31:42 +0100 [thread overview]
Message-ID: <4B751FFE.7020802@vmware.com> (raw)
In-Reply-To: <1265962365.3418.4859.camel@thor.local>
Michel Dänzer wrote:
> On Fri, 2010-02-12 at 00:17 +0100, Thomas Hellstrom wrote:
>
>> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
>>
>
> Please make a proper short description of the change on the first line
> of the commit message.
>
>
>
Done. That short description accidently ended up in the subject field.
/Thomas
>> drivers/gpu/drm/drm_mm.c | 3 ++-
>> 1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu/drm/drm_mm.c
>> index cdec329..2ac074c 100644
>> --- a/drivers/gpu/drm/drm_mm.c
>> +++ b/drivers/gpu/drm/drm_mm.c
>> @@ -405,7 +405,8 @@ struct drm_mm_node *drm_mm_search_free_in_range(const struct drm_mm *mm,
>> wasted += alignment - tmp;
>> }
>>
>> - if (entry->size >= size + wasted) {
>> + if (entry->size >= size + wasted &&
>> + (entry->start + wasted + size) <= end) {
>> if (!best_match)
>> return entry;
>> if (entry->size < best_size) {
>>
>
> Reviewed-by: Michel Dänzer <daenzer@vmware.com>
>
>
>
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel
prev parent reply other threads:[~2010-02-12 9:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-11 23:17 [PATCH 0/2] last minute range validation fixes Thomas Hellstrom
2010-02-11 23:17 ` [PATCH 1/2] drm: Fix a bug in the range manager. When searching for free space in a range, the function could return a node extending outside of the given range Thomas Hellstrom
2010-02-11 23:18 ` [PATCH 2/2] drm/ttm: Fix a bug occuring when validating a buffer object in a range Thomas Hellstrom
2010-02-12 8:12 ` [PATCH 1/2] drm: Fix a bug in the range manager. When searching for free space in a range, the function could return a node extending outside of the given range Michel Dänzer
2010-02-12 9:31 ` Thomas Hellstrom [this message]
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=4B751FFE.7020802@vmware.com \
--to=thellstrom@vmware.com \
--cc=airlied@redhat.com \
--cc=dri-devel@lists.sourceforge.net \
--cc=michel@daenzer.net \
/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.