Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <mkp@kernel.org>
To: <shao.mingyin@zte.com.cn>
Cc: <bostroesser@gmail.com>,  <mkp@kernel.org>,
	<linux-scsi@vger.kernel.org>,  <target-devel@vger.kernel.org>,
	<michael.christie@oracle.com>,  <bvanassche@acm.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] scsi: target: tcmu: Fix divide-by-zero in data_pages_per_blk store
Date: Fri, 30 Oct 2026 21:24:03 -0400	[thread overview]
Message-ID: <yq1bj8a3boi.fsf@mail.kernel.org> (raw)
In-Reply-To: <20261026195245337ktSXy9G17VCcXyw760g9s@zte.com.cn>


> tcmu_set_data_pages_per_blk() only validates the upper bound of the
> value parsed from data_pages_per_blk=. Zero passes that check and is
> then used as the divisor when computing udev->max_blocks:

Applied to 7.4/scsi-staging, thanks!

-- 
Martin K. Petersen

      parent reply	other threads:[~2026-10-31  1:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-26 11:52 [PATCH] scsi: target: tcmu: Fix divide-by-zero in data_pages_per_blk store shao.mingyin
2026-10-29 15:15 ` Bodo Strößer
2026-10-31  1:24 ` Martin K. Petersen [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=yq1bj8a3boi.fsf@mail.kernel.org \
    --to=mkp@kernel.org \
    --cc=bostroesser@gmail.com \
    --cc=bvanassche@acm.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=michael.christie@oracle.com \
    --cc=shao.mingyin@zte.com.cn \
    --cc=target-devel@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