diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-10-06 12:02:52 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-10-07 23:50:04 -0400 |
commit | 1725ba8d6ff1e98ce9d1f79d2bad7580cceace05 (patch) | |
tree | 733627dba7dc5b17853d43a96ce0544fe2da1855 /mm/readahead.c | |
parent | 45660591ee8f5b08bfc6e3aec50639df82a19ca3 (diff) | |
download | linux-1725ba8d6ff1e98ce9d1f79d2bad7580cceace05.tar.bz2 |
scsi: sym53c8xx_2: Fix sizeof() mismatch
An incorrect sizeof() is being used, struct sym_ccb ** is not correct, it
should be struct sym_ccb *. Note that since ** is the same size as * this
is not causing any issues. Improve this fix by using the idiom
sizeof(*np->ccbh) as this allows one to not even reference the type of the
pointer.
[ Note: this is an ancient 2005 buglet, the sha is from the
tglx/history repo ]
Link: https://lore.kernel.org/r/20201006110252.536641-1-colin.king@canonical.com
Fixes: 473c67f96e06 ("[PATCH] sym2 version 2.2.0")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Addresses-Coverity: ("Sizeof not portable (SIZEOF_MISMATCH)")
Diffstat (limited to 'mm/readahead.c')
0 files changed, 0 insertions, 0 deletions