Re: [PATCH] scsi: storvsc: Fix a bug in copy_from_bounce_buffer()

2015-08-07 Thread Ben Hutchings
Commit 8de580742fee ("scsi: storvsc: Fix a bug in copy_from_bounce_buffer()"), actually modified the function copy_to_bounce_buffer(). Is the commit message wrong, or was the patch applied to the wrong function? Ben. -- Ben Hutchings Computers are not intelligent. They only thin

Re: [PATCH] scsi: storvsc: Fix a bug in copy_from_bounce_buffer()

2015-08-09 Thread Ben Hutchings
On Sun, 2015-08-09 at 02:01 +, KY Srinivasan wrote: > > > -Original Message- > > From: KY Srinivasan > > Sent: Saturday, August 8, 2015 7:55 AM > > To: 'Ben Hutchings' > > Cc: Long Li ; linux-scsi > > Subject: RE: [PATCH] sc

[PATCH 3.16 226/306] scsi: mpt3sas: Fix secure erase premature termination

2017-02-15 Thread Ben Hutchings
Reinecke Signed-off-by: Martin K. Petersen Signed-off-by: Ben Hutchings --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c +++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c @@ -1625,7 +1625,10

[PATCH] [SCSI] hpsa: Fix driver support flag initialisation on !x86

2014-07-20 Thread Ben Hutchings
On !x86 we currently don't read the existing support flags: /home/benh/linux-3.14.13/drivers/scsi/hpsa.c:4375:17: warning: 'driver_support' is used uninitialized in this function [-Wuninitialized] driver_support |= ENABLE_UNIT_ATTN; ^ Signed-off-by: Ben H

Re: [PATCH] [SCSI] hpsa: Fix driver support flag initialisation on !x86

2014-07-20 Thread Ben Hutchings
On Sun, 2014-07-20 at 17:42 -0700, Christoph Hellwig wrote: > On Mon, Jul 21, 2014 at 01:09:17AM +0100, Ben Hutchings wrote: > > On !x86 we currently don't read the existing support flags: > > Arnd already sent this and I've included it in the for-3.17 queue. Thanks.

[stable] SCSI discard fixes

2016-04-22 Thread Ben Hutchings
5 17:52:02 2016 -0500 sd: Fix discard granularity when LBPRZ=1 ) Ben. -- Ben Hutchings When in doubt, use brute force. - Ken Thompson signature.asc Description: This is a digitally signed message part

[PATCH] [SCSI] sd: Fix parsing of 'temporary ' cache mode prefix

2013-05-27 Thread Ben Hutchings
static array so that sizeof() does what was intended. Compile-tested only. Signed-off-by: Ben Hutchings Cc: sta...@vger.kernel.org --- drivers/scsi/sd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index c1c5552..6f6a1b4 100644 --- a/dri

[SCSI] ufs: Add missing dependency on CONFIG_HAS_IOMEM

2013-06-09 Thread Ben Hutchings
The ufs driver doesn't build on s390 with CONFIG_PCI disabled as it requires MMIO functions. Marking for 3.9-stable only as CONFIG_SCSI_UFSHCD was previously dependent on CONFIG_PCI. Signed-off-by: Ben Hutchings Cc: sta...@vger.kernel.org # 3.9 --- --- a/drivers/scsi/ufs/Kconfig +++ b/dr

[stable] [SCSI] Fix incorrect memset in bnx2fc_parse_fcp_rsp

2013-07-23 Thread Ben Hutchings
security issue, but I don't know whether that's true in this case. Ben. -- Ben Hutchings Once a job is fouled up, anything done to improve it makes it worse. signature.asc Description: This is a digitally signed message part

Re: [stable] [SCSI] Fix incorrect memset in bnx2fc_parse_fcp_rsp

2013-07-27 Thread Ben Hutchings
On Wed, 2013-07-24 at 16:20 +0200, Andi Kleen wrote: > On Wed, Jul 24, 2013 at 04:42:42AM +0100, Ben Hutchings wrote: > > This looks like a candidate for stable: > > Don't know if it's a security issue, but should be fine for stable. OK, I've queued it

[PATCH] mvsas: Recognise device/subsystem 9485/9485 as 88SE9485

2013-09-15 Thread Ben Hutchings
:9485] [...] Add it to the device table as chip_9485. Reported-by: Matt Taggart Tested-by: Matt Taggart Signed-off-by: Ben Hutchings --- drivers/scsi/mvsas/mv_init.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c index 7b

Re: [PATCH 01/51] DMA-API: provide a helper to set both DMA and coherent DMA masks

2013-09-19 Thread Ben Hutchings
f. I would suggest: "The coherent mask can always be set to the same or a smaller mask than the streaming mask." Ben. -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare pr

Re: [PATCH 1/1] linux-firmware: Add Brocade FC/FCOE Adapter firmware files

2013-09-29 Thread Ben Hutchings
ct2fw-3.2.1.1.bin | Bin 0 -> 582440 bytes > ctfw-3.2.1.1.bin | Bin 0 -> 537160 bytes > 4 files changed, 27 insertions(+) > create mode 100644 cbfw-3.2.1.1.bin > create mode 100644 ct2fw-3.2.1.1.bin > create mode 100644 ctfw-3.2.1.1.bin [...] Applied, thanks. Sorry fo

Re: [PATCH RFC 01/77] PCI/MSI: Fix return value when populate_msi_sysfs() failed

2013-10-03 Thread Ben Hutchings
describing why in this > commit would be nice. [...] This function was already treating that error as fatal, and freeing the MSIs. The change in behaviour is that it now returns the error code in this case, rather than 0. This is obviously correct and properly described by the one-line su

Re: [PATCH RFC 06/77] PCI/MSI: Factor out pci_get_msi_cap() interface

2013-10-03 Thread Ben Hutchings
CI_MSI > +static inline int pci_get_msi_cap(struct pci_dev *dev) > +{ > + return -1; [...] Shouldn't this also return -EINVAL? Ben. -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Sol

Re: [PATCH RFC 00/77] Re-design MSI/MSI-X interrupts enablement pattern

2013-10-03 Thread Ben Hutchings
Your patch 7 removes that. pci_enable_msi_block() unfortunately doesn't appear to do this. It seems to me that a more useful interface would take a minimum and maximum number of vectors from the driver. This wouldn't allow the driver to specify that it could only accept, say, any even

Re: [PATCH RFC 00/77] Re-design MSI/MSI-X interrupts enablement pattern

2013-10-04 Thread Ben Hutchings
On Fri, 2013-10-04 at 10:29 +0200, Alexander Gordeev wrote: > On Thu, Oct 03, 2013 at 11:49:45PM +0100, Ben Hutchings wrote: > > On Wed, 2013-10-02 at 12:48 +0200, Alexander Gordeev wrote: > > > This update converts pci_enable_msix() and pci_enable_msi_block() > > > int

Re: Bug#666108: megaraid_sas: which patches are needed for 2.6.32.y?

2012-12-16 Thread Ben Hutchings
ards, > Jonathan > > [1] > http://alioth.debian.org/~jrnieder-guest/temp/driver-test/megaraid-driver-backport.mbox I've committed these, but we should really get some more users of both old and new hardware to test the result. Ben. -- Ben Hutchings Always try to do things in c

Re: [PATCH] iscsi-target: Fix bug in handling of ExpStatSN ACK during u32 wrap-around

2012-12-26 Thread Ben Hutchings
i_sna_gte(cmd->stat_sn, conn->sess->exp_cmd_sn)) { > list_del(&cmd->i_conn_node); > spin_unlock_bh(&conn->cmd_lock); > iscsit_free_cmd(cmd); [...] This changes cmd->cmd_sn to cmd->stat_sn, but the commit message

[PATCH] [SCSI] aacraid: Fix invalid bit shifts of DMA address

2013-02-15 Thread Ben Hutchings
n function 'aac_src_deliver_message': drivers/scsi/aacraid/src.c:410:3: warning: right shift count >= width of type [enabled by default] drivers/scsi/aacraid/src.c:434:2: warning: right shift count >= width of type [enabled by default] Signed-off-by: Ben Hutchings Cc: stable # v3.6+ --- T

Re: NULL pointer dereference: IP: [] sr_runtime_suspend+0xc/0x20 [sr_mod]

2016-02-09 Thread Ben Hutchings
queued up for 4.3 (though it's already in 4.4 which I'll probably upload to unstable soon). Ben. -- Ben Hutchings Design a system any fool can use, and only a fool will want to use it. signature.asc Description: This is a digitally signed message part

Re: NULL pointer dereference: IP: [] sr_runtime_suspend+0xc/0x20 [sr_mod]

2015-10-19 Thread Ben Hutchings
000 0001 fff5 f6a7d150 f6a30cd8 f6a30d3c > >  f6989bbc c1390cb7 f6a30cd8 f8334660 f6989bd0 c1390d0f f6a30cd8 > >  f8334660 f6989c0c c13916cb f694a614 f68dd040 0000 0008 > > Call Trace: > >  […] ? scsi_runtime_suspend+0x63/0x

Re: [PATCH RFC 00/77] Re-design MSI/MSI-X interrupts enablement pattern

2013-10-07 Thread Ben Hutchings
ith 0..nvec-1 in order, but not always. And the IRQ numbers returned aren't usually contiguous either, on x86. Ben. > And for the cleanup ... well that's what the "pcim" functions are for, > we can just make MSI-X variants. -- Ben Hutchings, Staff Engineer, Solarflare Not

Re: [PATCH RFC 00/77] Re-design MSI/MSI-X interrupts enablement pattern

2013-10-07 Thread Ben Hutchings
ctions should be implemented using the same loop that drivers are expected to use now. Ben. -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked. -- To unsubs

[PATCH] [SCSI] bfa: Fix undefined bit shift on big-endian architectures with 32-bit DMA address

2013-10-27 Thread Ben Hutchings
left shift count >= width of type [enabled by default] addr = bfa_sgaddr_le(sg_dma_address(sg)); ^ drivers/scsi/bfa/bfa_fcpim.c:2509:4: warning: right shift count >= width of type [enabled by default] Avoid this by adding casts to u64 in bfa_swap_words(). Compile-tested only. Signed-off

[PATCH] [SCSI] aic94xx: Remove broken fallback for missing 'Ctrl-A' user settings

2013-10-27 Thread Ben Hutchings
;offs' has not been initialised. Since asd_common_setup() already sets default PHY settings, there seems to be no need to repeat them here, and we can just return 0. Compile-tested only. Signed-off-by: Ben Hutchings --- drivers/scsi/aic94xx/aic94xx_sds.c | 18 ++ 1 file

[PATCH 0/8] Fix minor address type errors

2013-10-27 Thread Ben Hutchings
Various bits of code are mixing making assumptions about the size of dma_addr_t or resource_size_t, or mixing up pointer and integer types. All these fixes are based on compiler warnings and so far as I can see the bugs are practically harmless. Ben. Ben Hutchings (8): IB/cxgb4: Fix

[PATCH 5/8] [SCSI] tgt: Pass pointers to virt_to_page(), not integers

2013-10-27 Thread Ben Hutchings
err = vm_insert_page(vma, addr, page); if (err) return err; -- Ben Hutchings If at first you don't succeed, you're doing about average. signature.asc Description: This is a digitally signed message part

[PATCH 8/8] [SCSI] pmcraid: Pass pointers to access_ok(), not integers

2013-10-27 Thread Ben Hutchings
ULT; -- Ben Hutchings If at first you don't succeed, you're doing about average. signature.asc Description: This is a digitally signed message part

[PATCH RESEND] mvsas: Recognise device/subsystem 9485/9485 as 88SE9485

2013-12-11 Thread Ben Hutchings
:9485] [...] Add it to the device table as chip_9485. Reported-by: Matt Taggart Tested-by: Matt Taggart Signed-off-by: Ben Hutchings --- drivers/scsi/mvsas/mv_init.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c index 7b

Re: [PATCH 1/1 linux-scs-ml] qla2xxx: Update ql2{4,5}00_fw.bin to version 7.01.00

2013-12-15 Thread Ben Hutchings
4 -> 265420 bytes > 4 files changed, 28 insertions(+), 36 deletions(-) [...] Applied, thanks. Ben. -- Ben Hutchings Q. Which is the greater problem in the world today, ignorance or apathy? A. I don't know and I couldn't care less. signature.asc Description: This is a digitally signed message part

Re: [net-next 1/1] linux-firmware: 3.2.23.0 Firmware for Brocade Adapters

2013-12-15 Thread Ben Hutchings
am -s ~/tmp/\[net-next_1_1\]_linux-firmware\:_3.2.23.0_Firmware_for_Brocade_Adapters.mbox Applying: linux-firmware: 3.2.23.0 Firmware for Brocade Adapters error: corrupt binary patch at line 13542: znHIKNgBV5>FJqIQgo|#@us1Wq_D(J Please re-send (but not to the mailing lists; it's pointl

Re: [net-next 1/1] linux-firmware: 3.2.3.0 Firmware for Brocade Adapters

2013-12-19 Thread Ben Hutchings
| Bin 0 -> 583688 bytes > ctfw-3.2.3.0.bin | Bin 0 -> 538712 bytes > 4 files changed, 3 insertions(+) > create mode 100644 cbfw-3.2.3.0.bin > create mode 100644 ct2fw-3.2.3.0.bin > create mode 100644 ctfw-3.2.3.0.bin [...] Applied, thanks. Ben. -- Ben Hutchings It is

Re: Bug#733565: SIX messages per on boot console should be TWO

2013-12-29 Thread Ben Hutchings
apparently now called 3 times during probe. Which is quite ridiculous. And I wonder whether this situation (no caching mode page) is really serious enough to deserve logging at ERR severity? Ben. -- Ben Hutchings Logic doesn't apply to the real world. - Marvin Minsky signature.asc Description: This is a digitally signed message part

[PATCH RESEND 2] mvsas: Recognise device/subsystem 9485/9485 as 88SE9485

2014-02-18 Thread Ben Hutchings
:9485] [...] Add it to the device table as chip_9485. Reported-by: Matt Taggart Tested-by: Matt Taggart Signed-off-by: Ben Hutchings --- drivers/scsi/mvsas/mv_init.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c index 7b

[PATCH] [SCSI] bfa: Replace large udelay() with mdelay()

2014-03-08 Thread Ben Hutchings
udelay() does not work on some architectures for values above 2000, in particular on ARM: ERROR: "__bad_udelay" [drivers/scsi/bfa/bfa.ko] undefined! Reported-by: Vagrant Cascadian Signed-off-by: Ben Hutchings --- drivers/scsi/bfa/bfa_ioc.c | 2 +- 1 file changed, 1 insertion(+),

Bug#741686: linux-image-3.13-1-amd64: systemd-udevd kills long running mptsas module initailization, resulting in kernel oops

2014-03-15 Thread Ben Hutchings
t; [ 34.694597] [] ? SyS_finit_module+0x6d/0x70 > [ 34.706285] [] ? system_call_fastpath+0x16/0x1b > [ 34.718018] Code: 00 00 48 89 e6 4c 89 f7 e8 35 56 bf ff e9 40 ff ff ff b8 > 01 00 00 00 e9 87 fe ff ff 66 0f 1f 44 00 00 53 48 89 fb e8 57 e4 ff ff > ff 0b 79 08 48 89 df e8 3

Re: 3.2.57 regression: isci driver broken: Unable to reset I T nexus?

2014-04-30 Thread Ben Hutchings
I'm adding this revert to 3.2.58, taking your 'drop commit 584ec1226519' as an ack. Ben. --- From: Ben Hutchings Date: Wed, 30 Apr 2014 13:22:22 +0100 Subject: Revert "isci: fix reset timeout handling" This reverts commit 584ec12265192bf49dfa270d517380f67

[PATCH RESEND] [SCSI] bfa: Fix undefined bit shift on big-endian architectures with 32-bit DMA address

2014-06-08 Thread Ben Hutchings
left shift count >= width of type [enabled by default] addr = bfa_sgaddr_le(sg_dma_address(sg)); ^ drivers/scsi/bfa/bfa_fcpim.c:2509:4: warning: right shift count >= width of type [enabled by default] Avoid this by adding casts to u64 in bfa_swap_words(). Compile-tested only. Signed-off

[PATCH RESEND] [SCSI] aic94xx: Remove broken fallback for missing 'Ctrl-A' user settings

2014-06-08 Thread Ben Hutchings
;offs' has not been initialised. Since asd_common_setup() already sets default PHY settings, there seems to be no need to repeat them here, and we can just return 0. Compile-tested only. Signed-off-by: Ben Hutchings --- drivers/scsi/aic94xx/aic94xx_sds.c | 18 ++ 1 file

[PATCH RESEND] [SCSI] bfa: Fix undefined bit shift on big-endian architectures with 32-bit DMA address

2014-06-08 Thread Ben Hutchings
left shift count >= width of type [enabled by default] addr = bfa_sgaddr_le(sg_dma_address(sg)); ^ drivers/scsi/bfa/bfa_fcpim.c:2509:4: warning: right shift count >= width of type [enabled by default] Avoid this by adding casts to u64 in bfa_swap_words(). Compile-tested only. Signed-off

Re: [PATCH RESEND] [SCSI] aic94xx: Remove broken fallback for missing 'Ctrl-A' user settings

2014-07-06 Thread Ben Hutchings
On Wed, 2014-06-25 at 22:44 -0400, Martin K. Petersen wrote: > >>>>> "Christoph" == Christoph Hellwig writes: > > Christoph> On Sun, Jun 08, 2014 at 11:37:44PM +0100, Ben Hutchings wrote: > >> asd_process_ctrl_a_user() attempts to find user sett

Re: scsi: sg: assorted memory corruptions

2018-02-01 Thread Ben Hutchings
27;ve got > it by running qemu with default flags... If the bug is in libata then it's not on Doug to fix it since he's only maintaining sg. Ben. -- Ben Hutchings Software Developer, Codethink Ltd.

[PATCH] qla2xxx: Avoid double completion of abort command

2018-03-20 Thread Ben Hutchings
ynchronous ...") Fixes: 1514839b3664 ("scsi: qla2xxx: Fix NULL pointer crash due to active ...") Signed-off-by: Ben Hutchings --- drivers/scsi/qla2xxx/qla_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi

[PATCH] qla2xxx: Fix race condition between iocb timeout and initialisation

2018-03-20 Thread Ben Hutchings
completion structure needed by the timeout function, so move the call to add_timer() after that. Signed-off-by: Ben Hutchings Cc: sta...@vger.kernel.org --- drivers/scsi/qla2xxx/qla_gs.c | 12 +++- drivers/scsi/qla2xxx/qla_init.c | 37 +++-- drivers

[PATCH v2] qla2xxx: Fix race condition between iocb timeout and initialisation

2018-03-20 Thread Ben Hutchings
completion structure needed by the timeout function, so move the call to add_timer() after that. Signed-off-by: Ben Hutchings --- Changes from v1: Rebased to remove textual dependency on a patch I haven't yet sent (oops). Ben. drivers/scsi/qla2xxx/qla_gs.c | 12 +++- drivers

[RFC][PATCH] qla2xxx: Fix race between iocb timeout and free

2018-03-20 Thread Ben Hutchings
the timer, and dropped either at the end of the timer function or after the timer is cancelled - One reference is held by the completion path, and dropped by qla2x00_sp_free() Signed-off-by: Ben Hutchings --- This probably isn't quite right, since it's based on only a brief code rev

Re: [PATCH v2] qla2xxx: Fix race condition between iocb timeout and initialisation

2018-03-21 Thread Ben Hutchings
On Wed, 2018-03-21 at 17:17 +, Madhani, Himanshu wrote: > Hi Ben,  > > > On Mar 20, 2018, at 2:36 PM, Ben Hutchings > > wrote: > > > > qla2x00_init_timer() calls add_timer() on the iocb timeout timer, > > which means the timeout function pointer and an

Re: [PATCH v2] qla2xxx: Fix race condition between iocb timeout and initialisation

2018-03-21 Thread Ben Hutchings
On Wed, 2018-03-21 at 17:55 +, Madhani, Himanshu wrote: > Hi Ben,  > > > On Mar 21, 2018, at 10:45 AM, Ben Hutchings > > wrote: > > > > On Wed, 2018-03-21 at 17:17 +, Madhani, Himanshu wrote: > > > Hi Ben,  > > > > > > >

Re: [PATCH v2] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list

2012-07-25 Thread Ben Hutchings
n handling > flag bits. > > I have tested the patch on my workstation. QEMU would not crash any more. > > Signed-off-by: Wang Sen [...] This is not the correct way to submit a change for stable. See Documentation/stable_kernel_rules.txt. Ben. -- Ben Hutchings If more than o

Re: [V2 PATCH 6/9] csiostor: Chelsio FCoE offload driver submission (headers part 1).

2012-09-05 Thread Ben Hutchings
gt; > > This is similar to existing round_up() in kernel.h could you use that? > > > I will replace it with round_up() if it serves the same purpose. Thanks. Stephen is probably thinking of DIV_ROUND_UP(). round_up() does something different. Ben. -- Ben Hutchings, Staff Engine

[SCSI] hpsa: dial down lockup detection during firmware flash

2012-10-09 Thread Ben Hutchings
[SCSI] hpsa: dial down lockup detection during firmware flash Ben. -- Ben Hutchings Who are all these weirdos? - David Bowie, about L-Space IRC channel #afp signature.asc Description: This is a digitally signed message part

Re: [SCSI] hpsa: dial down lockup detection during firmware flash

2012-10-14 Thread Ben Hutchings
On Wed, 2012-10-10 at 09:18 -0500, scame...@beardog.cce.hp.com wrote: > Yes, I think so. Thanks. I've queued this up for 3.2, thanks. Ben. > -- steve > > On Wed, Oct 10, 2012 at 04:47:38AM +0100, Ben Hutchings wrote: > > Should this fix for hpsa be included in stable

[PATCH] [SCSI] aic94xx: Remove broken fallback for missing 'Ctrl-A' user settings

2012-11-05 Thread Ben Hutchings
;offs' has not been initialised. Since asd_common_setup() already sets default PHY settings, there seems to be no need to repeat them here, and we can just return 0. This matches what is done if any empty user settings area is found. Signed-off-by: Ben Hutchings --- Compile-tested only. Ben.

[PATCH] [SCSI] mv_sas: Fix confusion between enum sas_device_type and enum sas_dev_type

2012-11-05 Thread Ben Hutchings
can't think why. Signed-off-by: Ben Hutchings --- drivers/scsi/mvsas/mv_sas.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c index a3776d6..9f91359 100644 --- a/drivers/scsi/mvsas/mv_sas.c +++ b/drivers/scsi/

Re: Backport of a fix for a race condition in HPSA driver (3rd time is the charm)

2014-12-11 Thread Ben Hutchings
ue that we have run into a couple of times. > > Many thanks, > Masoud Sharbiani > > PS: Apologies for duplicate message that may have been captured in > your spam folder. I've queued this up for 3.2, thanks. Ben. -- Ben Hutchings Kids! Bringing about Armageddon can be

[PATCH 3.2 075/164] scsi: Fix error handling in SCSI_IOCTL_SEND_COMMAND

2014-12-11 Thread Ben Hutchings
: Ben Hutchings --- block/scsi_ioctl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c @@ -505,7 +505,7 @@ int sg_scsi_ioctl(struct request_queue * if (bytes && blk_rq_map_kern(q, rq, buffer, bytes, __GFP_WAIT)) {

Re: [PATCH] Initialize off value in asd_process_ctrl_a_user()

2014-12-28 Thread Ben Hutchings
h_dir) > { > int err, i; > - u32 offs, size; > + u32 offs = 0, size; > struct asd_ll_el *el; > struct asd_ctrla_phy_settings *ps; > struct asd_ctrla_phy_settings dflt_ps; -- Ben Hutchings Life would be so much easier if we could look at the source

[PATCH 3.16 051/192] scsi: virtio_scsi: let host do exception handling

2017-10-09 Thread Ben Hutchings
d-off-by: Paolo Bonzini Signed-off-by: Martin K. Petersen [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- drivers/scsi/virtio_scsi.c | 12 1 file changed, 12 insertions(+) --- a/drivers/scsi/virtio_scsi.c +++ b/drivers/scsi/virtio_scsi

Re: [PATCH linux-firmware 1/1] qed: Add firmware 8.30.16.0

2017-10-09 Thread Ben Hutchings
> -Support flow ID in aRFS flow. > > Signed-off-by: Rahul Verma > --- > qed/qed_init_values_zipped-8.30.16.0.bin | Bin 0 -> 837008 bytes > 1 file changed, 0 insertions(+), 0 deletions(-) > create mode 100755 qed/qed_init_values_zipped-8.30.16.0.bin [...] The new fil

[PATCH] scsi: sg: Re-fix off by one in sg_fill_request_table()

2017-10-15 Thread Ben Hutchings
()") moved that code, and reintroduced the bug (perhaps due to a botched rebase). Fix it again. Fixes: 4759df905a47 ("scsi: sg: factor out sg_fill_request_table()") Cc: sta...@vger.kernel.org Signed-off-by: Ben Hutchings --- drivers/scsi/sg.c | 2 +- 1 file changed, 1 insertion

Re: [Y2038] [PATCH 3/7] scsi: bfa: improve bfa_ioc_send_enable/disable data

2017-11-13 Thread Ben Hutchings
unsigned 32-bit time_t overflow in y2106 */ > + disable_req.tv_sec = be32_to_cpu(ktime_get_real_seconds()); >   bfa_ioc_mbox_send(ioc, &disable_req, sizeof(struct bfi_ioc_ctrl_req_s)); >  } >   -- Ben Hutchings Software Developer, Codethink Ltd.

Re: [PATCH 1/1] qed: Add firmware 8.33.1.0

2017-11-22 Thread Ben Hutchings
00755 qed/qed_init_values_zipped-8.33.1.0.bin [...] Applied; sorry for the delay. Ben. -- Ben Hutchings When in doubt, use brute force. - Ken Thompson signature.asc Description: This is a digitally signed message part