diff options
author | Jiri Kosina <jkosina@suse.cz> | 2010-06-16 12:08:13 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-06-16 12:08:13 -0400 |
commit | f1bbbb6912662b9f6070c5bfc4ca9eb1f06a9d5b (patch) | |
tree | c2c130a74be25b0b2dff992e1a195e2728bdaadd /drivers/message | |
parent | fd0961ff67727482bb20ca7e8ea97b83e9de2ddb (diff) | |
parent | 7e27d6e778cd87b6f2415515d7127eba53fe5d02 (diff) |
Merge branch 'master' into for-next
Diffstat (limited to 'drivers/message')
-rw-r--r-- | drivers/message/fusion/mptscsih.c | 6 | ||||
-rw-r--r-- | drivers/message/i2o/i2o_config.c | 11 |
2 files changed, 5 insertions, 12 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index 7bd4c0fc23cc..5c53624e0e87 100644 --- a/drivers/message/fusion/mptscsih.c +++ b/drivers/message/fusion/mptscsih.c | |||
@@ -2570,9 +2570,7 @@ mptscsih_getclear_scsi_lookup(MPT_ADAPTER *ioc, int i) | |||
2570 | } | 2570 | } |
2571 | 2571 | ||
2572 | /** | 2572 | /** |
2573 | * mptscsih_set_scsi_lookup | 2573 | * mptscsih_set_scsi_lookup - write a scmd entry into the ScsiLookup[] array list |
2574 | * | ||
2575 | * writes a scmd entry into the ScsiLookup[] array list | ||
2576 | * | 2574 | * |
2577 | * @ioc: Pointer to MPT_ADAPTER structure | 2575 | * @ioc: Pointer to MPT_ADAPTER structure |
2578 | * @i: index into the array | 2576 | * @i: index into the array |
@@ -2735,7 +2733,7 @@ mptscsih_scandv_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *req, | |||
2735 | 2733 | ||
2736 | 2734 | ||
2737 | /** | 2735 | /** |
2738 | * mptscsih_get_completion_code - | 2736 | * mptscsih_get_completion_code - get completion code from MPT request |
2739 | * @ioc: Pointer to MPT_ADAPTER structure | 2737 | * @ioc: Pointer to MPT_ADAPTER structure |
2740 | * @req: Pointer to original MPT request frame | 2738 | * @req: Pointer to original MPT request frame |
2741 | * @reply: Pointer to MPT reply frame (NULL if TurboReply) | 2739 | * @reply: Pointer to MPT reply frame (NULL if TurboReply) |
diff --git a/drivers/message/i2o/i2o_config.c b/drivers/message/i2o/i2o_config.c index d33693c13368..c4b117f5fb70 100644 --- a/drivers/message/i2o/i2o_config.c +++ b/drivers/message/i2o/i2o_config.c | |||
@@ -186,14 +186,9 @@ static int i2o_cfg_parms(unsigned long arg, unsigned int type) | |||
186 | if (!dev) | 186 | if (!dev) |
187 | return -ENXIO; | 187 | return -ENXIO; |
188 | 188 | ||
189 | ops = kmalloc(kcmd.oplen, GFP_KERNEL); | 189 | ops = memdup_user(kcmd.opbuf, kcmd.oplen); |
190 | if (!ops) | 190 | if (IS_ERR(ops)) |
191 | return -ENOMEM; | 191 | return PTR_ERR(ops); |
192 | |||
193 | if (copy_from_user(ops, kcmd.opbuf, kcmd.oplen)) { | ||
194 | kfree(ops); | ||
195 | return -EFAULT; | ||
196 | } | ||
197 | 192 | ||
198 | /* | 193 | /* |
199 | * It's possible to have a _very_ large table | 194 | * It's possible to have a _very_ large table |