Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'staging-6.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging

Pull staging driver fix from Greg KH:
"Here is a single staging driver fix for 6.16-rc4. It resolves a build
error in the rtl8723bs driver for some versions of clang on arm64 when
checking the frame size with -Wframe-larger-than.

It has been in linux-next for a while now with no reported issues"

* tag 'staging-6.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
staging: rtl8723bs: Avoid memset() in aes_cipher() and aes_decipher()

+14 -30
+14 -30
drivers/staging/rtl8723bs/core/rtw_security.c
··· 868 868 num_blocks, payload_index; 869 869 870 870 u8 pn_vector[6]; 871 - u8 mic_iv[16]; 872 - u8 mic_header1[16]; 873 - u8 mic_header2[16]; 874 - u8 ctr_preload[16]; 871 + u8 mic_iv[16] = {}; 872 + u8 mic_header1[16] = {}; 873 + u8 mic_header2[16] = {}; 874 + u8 ctr_preload[16] = {}; 875 875 876 876 /* Intermediate Buffers */ 877 - u8 chain_buffer[16]; 878 - u8 aes_out[16]; 879 - u8 padded_buffer[16]; 877 + u8 chain_buffer[16] = {}; 878 + u8 aes_out[16] = {}; 879 + u8 padded_buffer[16] = {}; 880 880 u8 mic[8]; 881 881 uint frtype = GetFrameType(pframe); 882 882 uint frsubtype = GetFrameSubType(pframe); 883 883 884 884 frsubtype = frsubtype>>4; 885 - 886 - memset((void *)mic_iv, 0, 16); 887 - memset((void *)mic_header1, 0, 16); 888 - memset((void *)mic_header2, 0, 16); 889 - memset((void *)ctr_preload, 0, 16); 890 - memset((void *)chain_buffer, 0, 16); 891 - memset((void *)aes_out, 0, 16); 892 - memset((void *)padded_buffer, 0, 16); 893 885 894 886 if ((hdrlen == WLAN_HDR_A3_LEN) || (hdrlen == WLAN_HDR_A3_QOS_LEN)) 895 887 a4_exists = 0; ··· 1072 1080 num_blocks, payload_index; 1073 1081 signed int res = _SUCCESS; 1074 1082 u8 pn_vector[6]; 1075 - u8 mic_iv[16]; 1076 - u8 mic_header1[16]; 1077 - u8 mic_header2[16]; 1078 - u8 ctr_preload[16]; 1083 + u8 mic_iv[16] = {}; 1084 + u8 mic_header1[16] = {}; 1085 + u8 mic_header2[16] = {}; 1086 + u8 ctr_preload[16] = {}; 1079 1087 1080 1088 /* Intermediate Buffers */ 1081 - u8 chain_buffer[16]; 1082 - u8 aes_out[16]; 1083 - u8 padded_buffer[16]; 1089 + u8 chain_buffer[16] = {}; 1090 + u8 aes_out[16] = {}; 1091 + u8 padded_buffer[16] = {}; 1084 1092 u8 mic[8]; 1085 1093 1086 1094 uint frtype = GetFrameType(pframe); 1087 1095 uint frsubtype = GetFrameSubType(pframe); 1088 1096 1089 1097 frsubtype = frsubtype>>4; 1090 - 1091 - memset((void *)mic_iv, 0, 16); 1092 - memset((void *)mic_header1, 0, 16); 1093 - memset((void *)mic_header2, 0, 16); 1094 - memset((void *)ctr_preload, 0, 16); 1095 - memset((void *)chain_buffer, 0, 16); 1096 - memset((void *)aes_out, 0, 16); 1097 - memset((void *)padded_buffer, 0, 16); 1098 1098 1099 1099 /* start to decrypt the payload */ 1100 1100