[PATCH 1/6] lib: string: add function strtolower()

2016-06-30 Thread Markus Mayer
Add a function called strtolower() to convert strings to lower case in-place, overwriting the original string. This seems to be a recurring requirement in the kernel that is currently being solved by several duplicated implementations doing the same thing. Signed-off-by: Markus Mayer --- includ

[PATCH 6/6] iscsi-target: replace iscsi_initiatorname_tolower() with strtolower()

2016-06-30 Thread Markus Mayer
After introducing generic strtolower(), iscsi_initiatorname_tolower() is no longer needed. Signed-off-by: Markus Mayer --- drivers/target/iscsi/iscsi_target_nego.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/target/iscsi/iscsi_target_nego.c b/dr

[PATCH 0/6] lib: string: add function strtolower()

2016-06-30 Thread Markus Mayer
This series introduces a new generic function strtolower(), which converts strings to lowercase in-place, overwriting the original string. This kind of functionality is needed in several places in the kernel. Right now, everybody seems to be implementing their own copy of this function. So, we repl

RE: [PATCH V3 1/2] smartpqi: initial commit of Microsemi smartpqi driver

2016-06-30 Thread Don Brace
> -Original Message- > From: Johannes Thumshirn [mailto:jthumsh...@suse.de] > Sent: Tuesday, June 28, 2016 2:54 AM > To: Don Brace > Cc: j...@linux.vnet.ibm.com; Viswas G; Mahesh Rajashekhara; > h...@infradead.org; Scott Teel; Kevin Barnett; Justin Lindley; Scott Benesh; > elli...@hpe.com;

[PATCH] target: Unsupported SCSI Opcode Fix

2016-06-30 Thread Bryant G. Ly
If a Simple command is sent with a failure, target_setup_cmd_from_cdb returns with TCM_UNSUPPORTED_SCSI_OPCODE or TCM_INVALID_CDB_FIELD. So in the cases where target_setup_cmd_from_cdb returns an error, we never get far enough to call target_execute_cmd to increment simple_cmds. Since simple_cmds i

Re: [PATCH] qla2xxx: Fix NULL pointer deref in QLA interrupt

2016-06-30 Thread Quinn Tran
Ack. Looks good. Thanks. Regards, Quinn Tran -Original Message- From: Bruno Prémont Date: Thursday, June 30, 2016 at 8:00 AM To: Quinn Tran , Himanshu Madhani , Nicholas Bellinger Cc: Dept-Eng QLA2xxx Upstream , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi , linu

[PATCH v2] libfc: sanity check cpu number extracted from xid

2016-06-30 Thread Chris Leech
In the receive path libfc extracts a cpu number from the ox_id in the fiber channel header and uses that to do a per_cpu_ptr conversion. If, for some reason, a frame is received with an invalid ox_id, per_cpu_ptr will return an invalid pointer and the libfc receive path will panic the system trying

[PATCH] qla2xxx: Fix NULL pointer deref in QLA interrupt

2016-06-30 Thread Bruno Prémont
In qla24xx_process_response_queue() rsp->msix->cpuid may trigger NULL pointer dereference when rsp->msix is NULL: [5.622457] NULL pointer dereference at 0050 [5.622457] IP: [] qla24xx_process_response_queue+0x44/0x4b0 [5.622457] PGD 0 [5.622457] Oops: [#1] SMP [