From: Dan Carpenter <dan.carpenter@oracle.com>
To: matthew.auld@intel.com
Cc: intel-gfx@lists.freedesktop.org
Subject: [bug report] drm/i915: buddy allocator
Date: Thu, 15 Aug 2019 12:04:10 +0300 [thread overview]
Message-ID: <20190815090410.GA1319@mwanda> (raw)
Hello Matthew Auld,
The patch 14d1b9a6247c: "drm/i915: buddy allocator" from Aug 9, 2019,
leads to the following static checker warning:
drivers/gpu/drm/i915/selftests/i915_buddy.c:670 igt_buddy_alloc_range()
error: we previously assumed 'block' could be null (see line 665)
drivers/gpu/drm/i915/selftests/i915_buddy.c
660 }
661
662 block = list_first_entry_or_null(&tmp,
663 struct i915_buddy_block,
664 link);
665 if (!block) {
666 pr_err("alloc_range has no blocks\n");
667 err = -EINVAL;
No break statement?
668 }
669
670 if (i915_buddy_block_offset(block) != offset) {
671 pr_err("alloc_range start offset mismatch, found=%llx, expected=%llx\n",
672 i915_buddy_block_offset(block), offset);
673 err = -EINVAL;
I guess we still want to splice this into the list even though it's
invalid?
674 }
675
676 if (!err)
677 err = igt_check_blocks(&mm, &tmp, size, true);
Same
678
679 list_splice_tail(&tmp, &blocks);
680
681 if (err)
682 break;
683
684 offset += size;
685
686 rem -= size;
regards,
dan carpenter
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
reply other threads:[~2019-08-15 9:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20190815090410.GA1319@mwanda \
--to=dan.carpenter@oracle.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=matthew.auld@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox