Hello, Borislav Petkov wrote: > Hmm, not quite. If its info->sense_data, then 18 is not correct. Rather, > sizeof(struct request_sense) would be more likely the proper length. So, > actually, it would be more like: > > unsigned sense_len = 18; > > if (sense == NULL) { > sense = &info->sense_data; > sense_len = sizeof(struct request_sense); > } > > memset(sense, 0, sense_len); Okay, will update as such. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html