1. Verify that the joint shaft is not twisted or cracked.
2. Turn the joint shaft by hand and verify that the bearing rotates smoothly and freely.

Drive shaft
Joint shaft removal/installationMazda 6 Service Manual: Contact Authorized Mazda Dealer and Have Vehicle Inspected
If any of the following warning lights or the indicator light turns on/flashes,
the system may have a malfunction. Contact an Authorized Mazda Dealer to have your
vehicle inspected.
...
Mazda 6 Service Manual: Dtc c1148, c1158, c1168, c1178, c1233, c1234, c1235, c1236
Caution
When attaching the tester lead to the ABS (ABS/TCS) HU/CM harness
connector, the SST (49 G066 001) must be used. (See ABS (ABS/TCS) HU/CM
INSPECTION.)
Diagnostic procedure
...