| .. | .. |
|---|
| 19 | 19 | |
|---|
| 20 | 20 | #include "internal.h" |
|---|
| 21 | 21 | |
|---|
| 22 | | -#define _COMPONENT ACPI_SYSTEM_COMPONENT |
|---|
| 23 | | -ACPI_MODULE_NAME("event"); |
|---|
| 24 | | - |
|---|
| 25 | 22 | /* ACPI notifier chain */ |
|---|
| 26 | 23 | static BLOCKING_NOTIFIER_HEAD(acpi_chain_head); |
|---|
| 27 | 24 | |
|---|
| .. | .. |
|---|
| 34 | 31 | event.type = type; |
|---|
| 35 | 32 | event.data = data; |
|---|
| 36 | 33 | return (blocking_notifier_call_chain(&acpi_chain_head, 0, (void *)&event) |
|---|
| 37 | | - == NOTIFY_BAD) ? -EINVAL : 0; |
|---|
| 34 | + == NOTIFY_BAD) ? -EINVAL : 0; |
|---|
| 38 | 35 | } |
|---|
| 39 | 36 | EXPORT_SYMBOL(acpi_notifier_call_chain); |
|---|
| 40 | 37 | |
|---|
| .. | .. |
|---|
| 131 | 128 | event = nla_data(attr); |
|---|
| 132 | 129 | memset(event, 0, sizeof(struct acpi_genl_event)); |
|---|
| 133 | 130 | |
|---|
| 134 | | - strcpy(event->device_class, device_class); |
|---|
| 135 | | - strcpy(event->bus_id, bus_id); |
|---|
| 131 | + strscpy(event->device_class, device_class, sizeof(event->device_class)); |
|---|
| 132 | + strscpy(event->bus_id, bus_id, sizeof(event->bus_id)); |
|---|
| 136 | 133 | event->type = type; |
|---|
| 137 | 134 | event->data = data; |
|---|
| 138 | 135 | |
|---|