projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b12a56
)
scsi: hptiop: Replace one-element array with flexible-array member in struct hpt_iop_...
author
Gustavo A. R. Silva
<gustavoars@kernel.org>
Thu, 22 Sep 2022 17:00:46 +0000
(12:00 -0500)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Sun, 25 Sep 2022 17:04:17 +0000
(13:04 -0400)
One-element arrays are deprecated, and we are replacing them with flexible
array members instead. So, replace one-element array with flexible-array
member in struct hpt_iop_request_ioctl_command.
Link:
https://github.com/KSPP/linux/issues/79
Link:
https://github.com/KSPP/linux/issues/205
Link:
https://lore.kernel.org/r/YyyUvuId7dAZadej@work
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hptiop.h
patch
|
blob
|
history
diff --git
a/drivers/scsi/hptiop.h
b/drivers/scsi/hptiop.h
index ef2f2aca598cf2d629d50a1477928955ca3c05c0..394ef6aa469e89f4cb4b110f31ba2aa77163f1f2 100644
(file)
--- a/
drivers/scsi/hptiop.h
+++ b/
drivers/scsi/hptiop.h
@@
-237,7
+237,7
@@
struct hpt_iop_request_ioctl_command {
__le32 inbuf_size;
__le32 outbuf_size;
__le32 bytes_returned;
- u8 buf[
1
];
+ u8 buf[];
/* out data should be put at buf[(inbuf_size+3)&~3] */
};