Benign repos Download

ras_umc.c

Removes an entry from a linked listAssigns a negative errno constant
SHA-25692940e59cf1a230eb946f71e20bb0333b0e84cc7043a1a61d44b4e11819eea00

Evidence

imports ras.h lines 19–31
19:67… RWISE,
20 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 * OTHER DEALINGS IN THE SOFTWARE.
22 *
23 */
24#include "ras.h"
25#include "ras_umc.h"
26#include "ras_umc_v12_0.h"
27
28#define MAX_ECC_NUM_PER_RETIREMENT 16
29
30/* bad page timestamp format
31 * yy[31:27] mm[26:23] …
Kernel error code return lines 90–100
90:6… ct ras_ta_query_address_output addr_out;
91 int ret;
92
93 if (!in)
94 return -EINVAL;
95
96 memset(&addr_in, 0, sizeof(addr_in));
⋯4 lines
Copies bytes with native memcpy lines 202–209
202:9… e = kzalloc_obj(*ecc_node);
203 if (!ecc_node)
204 return -ENOMEM;
205
206 memcpy(&ecc_node->ecc, bank, sizeof(ecc_node->ecc));
207
208 mutex_lock(&ras_umc->pending_ecc_lock);
209 list_add_tail(&ecc_node->node, &ras_um …
Removes an entry from a linked list lines 225–235
225:9… c_node && !ras_umc_log_bad_bank(ras_core, &ecc_node->ecc)) {
226 list_del(&ecc_node->node);
227 kfree(ecc_node);
228 }
⋯7 lines
Assigns a negative errno constant lines 247–256
247 goto out;
248
249 err_rec = kzalloc_obj(*err_rec);
250 if (!err_rec) {
251 ret = -ENOMEM;
252 goto out;
253 }
254
255 memcpy(err_rec, &umc_rec, sizeof(umc_rec));
256 ret = ras_umc_log_ecc(ras_core, err_rec->cur_nps_retired_row_pfn, …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.