diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-05-16 10:28:22 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-05-16 10:28:22 -0700 |
| commit | 83a896549f9209ffaabf220e3778f14d5ba92e3d (patch) | |
| tree | b5c1cba09a3c76eb5ffe9fc5d7afbf6d2ae0efd1 /block | |
| parent | 6462c247b27e35393dbd8eda251a071de9ea8665 (diff) | |
| parent | e8007fad5457ea547ca63bb011fdb03213571c7e (diff) | |
| download | linux-83a896549f9209ffaabf220e3778f14d5ba92e3d.tar.gz linux-83a896549f9209ffaabf220e3778f14d5ba92e3d.tar.bz2 linux-83a896549f9209ffaabf220e3778f14d5ba92e3d.zip | |
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fix from James Bottomley:
"Fix to zone block devices to make the maximum segment count match what
the block layer is capable of"
* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
scsi: sd_zbc: block: Respect bio vector limits for REPORT ZONES buffer
Diffstat (limited to 'block')
| -rw-r--r-- | block/bio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bio.c b/block/bio.c index 4e6c85a33d74..4be592d37fb6 100644 --- a/block/bio.c +++ b/block/bio.c @@ -611,7 +611,7 @@ struct bio *bio_kmalloc(unsigned short nr_vecs, gfp_t gfp_mask) { struct bio *bio; - if (nr_vecs > UIO_MAXIOV) + if (nr_vecs > BIO_MAX_INLINE_VECS) return NULL; return kmalloc(struct_size(bio, bi_inline_vecs, nr_vecs), gfp_mask); } |
