Maryland Correctional Services Section 11-507
§ 11-507.
  (a)   If an inmate violates the rules of discipline of a local correctional facility, the managing official, for each violation, may revoke some or all of the diminution credits awarded under § 11-503 (presentence good conduct) or § 11-504 (postsentence good conduct) of this subtitle for the month in which the violation occurs.
  (b)   In addition to the revocation authorized under subsection (a) of this section, if a violation is aggravated or the inmate commits frequent violations, the managing official may revoke some or all of the diminution credits awarded under § 11-503 (presentence good conduct) or § 11-504 (postsentence good conduct) of this subtitle.
  (c)   This section does not affect the diminution credits awarded under §§ 11-505 (industrial, agricultural, or administrative tasks) and 11-506 (special selected work projects) of this subtitle.
  (d)   A managing official may not revoke diminution credits awarded to an inmate unless the inmate is afforded due process of law before the revocation.