check not required when writing to fpga flash dir

This commit is contained in:
maliakal_d 2021-11-24 09:27:18 +01:00
parent 9d63875802
commit 044843c8b7

View File

@ -9381,12 +9381,15 @@ void receive_program_via_blackfin(int file_des, enum PROGRAM_INDEX index,
functionType); functionType);
LOG(logERROR, (mess)); LOG(logERROR, (mess));
#else #else
// only when writing to kernel flash or root directory
if (index != PROGRAM_FPGA) {
// check update is allowed (Non Amd OR AMD + current kernel) // check update is allowed (Non Amd OR AMD + current kernel)
ret = allowUpdate(mess, functionType); ret = allowUpdate(mess, functionType);
if (ret == FAIL) { if (ret == FAIL) {
Server_SendResult(file_des, INT32, NULL, 0); Server_SendResult(file_des, INT32, NULL, 0);
return; return;
} }
}
// open file and allocate memory for part program // open file and allocate memory for part program
FILE *fd = NULL; FILE *fd = NULL;