diff options
author | Alistair Popple <[email protected]> | 2018-04-11 16:38:55 +1000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2018-04-24 09:46:57 +1000 |
commit | a1409adac748f0db655e096521bbe6904aadeb98 (patch) | |
tree | aa0b71b847bac835ef5bd59704f308d4b2e0998f /lib/memory-notifier-error-inject.c | |
parent | 28a5933e8d362766462ea9e5f135e19f41e658ba (diff) |
powerpc/powernv/npu: Prevent overwriting of pnv_npu2_init_contex() callback parameters
There is a single npu context per set of callback parameters. Callers
should be prevented from overwriting existing callback values so
instead return an error if different parameters are passed.
Fixes: 1ab66d1fbada ("powerpc/powernv: Introduce address translation services for Nvlink2")
Cc: [email protected] # v4.12+
Signed-off-by: Alistair Popple <[email protected]>
Reviewed-by: Mark Hairgrove <[email protected]>
Tested-by: Mark Hairgrove <[email protected]>
Reviewed-by: Balbir Singh <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions