Commit 6554c9f7 authored by Kees Cook's avatar Kees Cook Committed by Doug Ledford

RDMA/nes: use designated initializers

Prepare to mark sensitive kernel structures for randomization by making
sure they're using designated initializers. These were identified during
allyesconfig builds of x86, arm, and arm64, with most initializer fixes
extracted from grsecurity.
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent c5540a01
...@@ -135,17 +135,17 @@ static void record_ird_ord(struct nes_cm_node *, u16, u16); ...@@ -135,17 +135,17 @@ static void record_ird_ord(struct nes_cm_node *, u16, u16);
/* instance of function pointers for client API */ /* instance of function pointers for client API */
/* set address of this instance to cm_core->cm_ops at cm_core alloc */ /* set address of this instance to cm_core->cm_ops at cm_core alloc */
static const struct nes_cm_ops nes_cm_api = { static const struct nes_cm_ops nes_cm_api = {
mini_cm_accelerated, .accelerated = mini_cm_accelerated,
mini_cm_listen, .listen = mini_cm_listen,
mini_cm_del_listen, .stop_listener = mini_cm_del_listen,
mini_cm_connect, .connect = mini_cm_connect,
mini_cm_close, .close = mini_cm_close,
mini_cm_accept, .accept = mini_cm_accept,
mini_cm_reject, .reject = mini_cm_reject,
mini_cm_recv_pkt, .recv_pkt = mini_cm_recv_pkt,
mini_cm_dealloc_core, .destroy_cm_core = mini_cm_dealloc_core,
mini_cm_get, .get = mini_cm_get,
mini_cm_set .set = mini_cm_set
}; };
static struct nes_cm_core *g_cm_core; static struct nes_cm_core *g_cm_core;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment