Gráfico de commits

12 Commits

Autor SHA1 Mensagem Data
Om Prakash Singh
fe2e65e65f NFC: avoid freeing unallocated memory
Issue:
    In function ese_cold_reset_ioctl, kfree is getting call
for nfc_dev->cold_reset.cmd_buf in case of early failure
in the function.

Fix:
    Add check NULL check before calling kfree

Change-Id: Ic3e86494f65330ff58a0deb394b3a654f0a395db
Signed-off-by: Om Prakash Singh <quic_omprsing@quicinc.com>
2023-07-13 05:49:24 -07:00
Khageswararao Rao B
06aaa9ef5d nfc: driver: Fix vedor checker errors
Added fix to Vendor checker compilation errors.

Change-Id: I6e743dbf098d70e2d9f4791c5aed16c8e725230d
Signed-off-by: Khageswararao Rao B <quic_kraob@quicinc.com>
2023-06-22 13:50:27 +05:30
Mallikarjun S T
215e40c3bc NFC: driver: Add compilation flag for secure module lib dependencies
Implemented compilation flag for secure module libraries dependencies
nfc driver.

Change-Id: I63d5feb1bf5c8e84748529b55e8b9b6832ae27e4
2023-06-07 17:01:43 +05:30
PRANAY BHARGAV BHAVARAJU
f9075847af NFC: Driver: Added Fall through
To avoid code compilation issues NFC team added break in
eSE cold reset file as temperory fix.

Replacing the break with Fall through.

Change-Id: Ieb6a5f105a71ae0533f746f6c56479c56a68cd2c
2023-01-02 22:19:29 -08:00
Khageswararao Rao B
c755b03abb NFC: Driver: NFC Driver compilation issues on Pineapple
Added fix for compilation issue on Pineapple.

Change-Id: I8d39dbec75af8e44e6478b7d06e886196e1624fe
2022-12-03 21:24:25 -08:00
PRANAY BHARGAV BHAVARAJU
6de117e3c9 nfc driver: Added mutex lock
Added mutex loc in the fucntion ese_cold_reset_ioctl
to avoid double free issues

Change-Id: I1ba7187f8339a6de5a31ef009b45556ceab46989
Signed-off-by: PRANAY BHARGAV BHAVARAJU <quic_pbhavara@quicinc.com>
2022-09-09 09:05:33 -07:00
PRANAY BHARGAV BHAVARAJU
a6d8f76e52 NFC: Avoid slab out of bound
chages done to ese_cold_reset c file to avoid
slabout of bound issues.

Change-Id: Idbc72acc16c8a2f55d982015b69e196d38ddc199
Signed-off-by: PRANAY BHARGAV BHAVARAJU <quic_pbhavara@quicinc.com>
2022-09-09 09:05:07 -07:00
Bhuvan Varshney
585ccc9bf8 NFC: Avoid Null pointer de-referencing
Null pointer check is added in the send_ese_cmd function
to avoid null pointer dereferencing.

Change-Id: Ia577ba3b649b2a33076a2b33c3b20c3f1fffac85
2022-09-09 09:04:24 -07:00
Khageswararao Rao B
2eb1087f53 NFC: Driver: Add secure zone status check
Added secure zone status check before calling secure zone APIs

Change-Id: I09247c75233da257f3d8da569df21b2236d55772
2022-09-06 08:38:43 -07:00
PRANAY BHARGAV BHAVARAJU
54561969eb Driver: eSE : checking NULL pointer
NFC: set the rsp buffer to null
set the response buffer to null in order to avoid
invalid free

Change-Id: Id92aca9255e4e58cc03822a1af1adf6fbbdfa443
Signed-off-by: PRANAY BHARGAV BHAVARAJU <quic_pbhavara@quicinc.com>
2022-09-02 17:26:13 +05:30
Mallikarjun S T
eba3412350 NFC: driver: FR63179 Add NFC dynamic protection control
Implemented NFC dynamic protection control feature in driver; performing
Ven GPIO enable/disable post TZ notifications in non-secure/secure zone
respectively.

Change-Id: I13dedf23987ce0b3b2a53881d35f6c3cf462cd92
2022-05-25 16:43:12 +05:30
Tapas Dey
a6c862cb8a NFC: driver: Fix compilation issues on NFC driver
Modified code to fix compilation issues on NFC driver
for MW version 12.10.00 and retained QC specific code.

Change-Id: I9eeba3f6534a3c67c3b32b6361b4ef5d42965265
2022-02-02 16:47:06 +05:30