Loading arch/arm64/kernel/ptrace.c +18 −20 Original line number Diff line number Diff line Loading @@ -214,10 +214,10 @@ static int ptrace_hbp_fill_attr_ctrl(unsigned int note_type, { int err, len, type, disabled = !ctrl.enabled; if (disabled) { len = 0; type = HW_BREAKPOINT_EMPTY; } else { attr->disabled = disabled; if (disabled) return 0; err = arch_bp_generic_fields(ctrl, &len, &type); if (err) return err; Loading @@ -234,11 +234,9 @@ static int ptrace_hbp_fill_attr_ctrl(unsigned int note_type, default: return -EINVAL; } } attr->bp_len = len; attr->bp_type = type; attr->disabled = disabled; return 0; } Loading Loading
arch/arm64/kernel/ptrace.c +18 −20 Original line number Diff line number Diff line Loading @@ -214,10 +214,10 @@ static int ptrace_hbp_fill_attr_ctrl(unsigned int note_type, { int err, len, type, disabled = !ctrl.enabled; if (disabled) { len = 0; type = HW_BREAKPOINT_EMPTY; } else { attr->disabled = disabled; if (disabled) return 0; err = arch_bp_generic_fields(ctrl, &len, &type); if (err) return err; Loading @@ -234,11 +234,9 @@ static int ptrace_hbp_fill_attr_ctrl(unsigned int note_type, default: return -EINVAL; } } attr->bp_len = len; attr->bp_type = type; attr->disabled = disabled; return 0; } Loading