This is the correct definition of cap risk. Cap risk occurs with floating-rate bonds that have a cap placed on how high the coupon rate can go.
Inflation risk refers to the risk that the rate of inflation will be higher than the investor anticipated, resulting in reduced purchasing power. An investor can reduce exposure to inflation risk by holding floating-rate bonds.