From: Dan Carpenter <dan.carpenter@oracle.com>
To: konrad.wilk@oracle.com
Cc: linux-block@vger.kernel.org
Subject: [bug report] xen/blkback: Prefix 'vbd' with 'xen' in structs and functions.
Date: Mon, 9 Nov 2020 13:24:49 +0300 [thread overview]
Message-ID: <20201109102449.GA2454565@mwanda> (raw)
[ This is an ancient bug and it's too old to know who to blame. But
what I know is that it probably has nothing to do with changing the
prefix from vbd_ to xen_ so my blame scripts are likely wrong. - dan ]
Hello Konrad Rzeszutek Wilk,
This is a semi-automatic email about new static checker warnings.
The patch 3d814731ba67: "xen/blkback: Prefix 'vbd' with 'xen' in
structs and functions." from May 12, 2011, leads to the following
Smatch complaint:
drivers/block/xen-blkback/xenbus.c:510 xen_vbd_create()
error: we previously assumed 'vbd->bdev->bd_disk' could be null (see line 507)
drivers/block/xen-blkback/xenbus.c
506 vbd->bdev = bdev;
507 if (vbd->bdev->bd_disk == NULL) {
^^^^^^^^^^^^^^^^^^
If vbd->bdev->bd_disk is NULL then we are toasted.
508 pr_warn("xen_vbd_create: device %08x doesn't exist\n",
509 vbd->pdevice);
510 xen_vbd_free(vbd);
The disk_flush_events(bdev->bd_disk, DISK_EVENT_MEDIA_CHANGE); call in
blkdev_put() will Oops.
511 return -ENOENT;
512 }
regards,
dan carpenter
reply other threads:[~2020-11-09 10:25 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=20201109102449.GA2454565@mwanda \
--to=dan.carpenter@oracle.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-block@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox