Benign repos download unavailable

amd.c

Adds an entry to a linked listRemoves an entry from a linked list
SHA-256b859dcae3e4ec6edb1ecc0b93cc7b15c93575c8e9aeb1282d3c22bcaf986bd67

Evidence

C declares a character or byte buffer lines 226–237
226:59… f longest type name.
227 */
228#define MAX_MCATYPE_NAME_LEN 30
229static char buf_mcatype[MAX_MCATYPE_NAME_LEN];
230
231struct threshold_block {
232 /* This block's number within its bank. */
233 unsigned int block;
234 /* MCA bank number that contains this block. */
235 unsigned int bank;
236 /* CPU which controls this block's MCA bank. */
237 …
Kernel error code return lines 910–923
910:15… _restart tr;
911 unsigned long new;
912
913 if (!b->interrupt_capable)
914 return -EINVAL;
915
916 if (kstrtoul(buf, 0, &new) < 0)
⋯7 lines
Adds an entry to a linked list lines 1105–1114
1105:6… interrupt_enable = 1;
1106 } else {
1107 default_attrs[2] = NULL;
1108 }
1109
1110 list_add(&b->miscj, &tb->miscj);
1111
1112 mce_threshold_block_init(b, (high & MASK_LVTOFF_HI) >> 20);
1113
1114 err = kobject_init_and_add(&b->kobj, &t …
Removes an entry from a linked list lines 1127–1139
⋯4 lines
1131out_free:
1132 if (b) {
1133 list_del(&b->miscj);
1134 kobject_put(&b->kobj);
1135 }
⋯4 lines
Assigns a negative errno constant lines 1148–1165
1148:8… n -ENODEV;
1149
1150 b = kzalloc_obj(struct threshold_bank);
1151 if (!b) {
1152 err = -ENOMEM;
1153 goto out;
1154 }
1155
1156 /* Associate the bank with the per-CPU MCE device */
1157 b->kobj = kobject_create_and_add(name, &dev->kobj);
1158 if (!b->kobj) {
1159 err = -EINVAL;
1160 goto out_free;
1161 }
⋯4 lines

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.