Jerome Glisse wrote: > On Mon, Dec 21, 2009 at 01:53:37PM +1000, Dave Airlie wrote: > >> From: Bob Gleitsmann <[email protected]> >> >> This is from bug 25728. >> >> [airlied: I'm just forwarding the patch for review, Thomas, ickle?] >> > > Looks good to me. > Ack-by: Jerome Glisse <[email protected]> >
Acked-by: Thomas Hellstrom <[email protected]> > >> --- >> drivers/gpu/drm/drm_mm.c | 4 ++-- >> 1 files changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu/drm/drm_mm.c >> index d7d7eac..cdec329 100644 >> --- a/drivers/gpu/drm/drm_mm.c >> +++ b/drivers/gpu/drm/drm_mm.c >> @@ -358,7 +358,7 @@ struct drm_mm_node *drm_mm_search_free(const struct >> drm_mm *mm, >> if (entry->size >= size + wasted) { >> if (!best_match) >> return entry; >> - if (size < best_size) { >> + if (entry->size < best_size) { >> best = entry; >> best_size = entry->size; >> } >> @@ -408,7 +408,7 @@ struct drm_mm_node *drm_mm_search_free_in_range(const >> struct drm_mm *mm, >> if (entry->size >= size + wasted) { >> if (!best_match) >> return entry; >> - if (size < best_size) { >> + if (entry->size < best_size) { >> best = entry; >> best_size = entry->size; >> } >> -- >> 1.6.5.2 >> >> >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> -- >> _______________________________________________ >> Dri-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/dri-devel >> >> > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > -- > _______________________________________________ > Dri-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dri-devel > ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
