diff options
Diffstat (limited to 'drivers/message')
-rw-r--r-- | drivers/message/fusion/mptctl.c | 4 | ||||
-rw-r--r-- | drivers/message/fusion/mptsas.c | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c index fc7393729081..02b5f69e1a42 100644 --- a/drivers/message/fusion/mptctl.c +++ b/drivers/message/fusion/mptctl.c | |||
@@ -1038,6 +1038,10 @@ kbuf_alloc_2_sgl(int bytes, u32 sgdir, int sge_offset, int *frags, | |||
1038 | int i, buflist_ent; | 1038 | int i, buflist_ent; |
1039 | int sg_spill = MAX_FRAGS_SPILL1; | 1039 | int sg_spill = MAX_FRAGS_SPILL1; |
1040 | int dir; | 1040 | int dir; |
1041 | |||
1042 | if (bytes < 0) | ||
1043 | return NULL; | ||
1044 | |||
1041 | /* initialization */ | 1045 | /* initialization */ |
1042 | *frags = 0; | 1046 | *frags = 0; |
1043 | *blp = NULL; | 1047 | *blp = NULL; |
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 005a88b9f440..7ebccfa8072a 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c | |||
@@ -1994,7 +1994,6 @@ static struct scsi_host_template mptsas_driver_template = { | |||
1994 | .cmd_per_lun = 7, | 1994 | .cmd_per_lun = 7, |
1995 | .use_clustering = ENABLE_CLUSTERING, | 1995 | .use_clustering = ENABLE_CLUSTERING, |
1996 | .shost_attrs = mptscsih_host_attrs, | 1996 | .shost_attrs = mptscsih_host_attrs, |
1997 | .use_blk_tags = 1, | ||
1998 | }; | 1997 | }; |
1999 | 1998 | ||
2000 | static int mptsas_get_linkerrors(struct sas_phy *phy) | 1999 | static int mptsas_get_linkerrors(struct sas_phy *phy) |