Three leds in series will need about 8.55V , there will be 1.25V across the LM317 resistor, leaving 2.4V across the 317 from a 12.2V supply. This may not be enough, look up the details of the 317, the technical term is dropout voltage.
If you have a 12.2v stabilised supply, then a simple...